How the TypeScript Readonly Type Works

TypeScript Readonly types allow us to enforce read-only behaviour on types. Let's look at how they work.