Immutable Data with Readonly

This lesson explains the 'readonly' mapped type.

The Object.freeze function

One well-known JavaScript function that has a mapped type already backed in TypeScript is the Object.freeze. The role of this function is to take a type and return everything as read-only ...