Readonly<Type>

Returns a new version of Type where all properties are set to readonly. This will produce a type error

Loading TypeScript...
  • why freeze an object

Was this page helpful?