Casts a mutable type T to its DeepReadonly<T> equivalent, recursively
adding readonly modifiers.
This is a safe type assertion that adds immutability constraints at ALL
levels of nesting. Provides complete protection against mutations in complex
data structures. The runtime value is unchanged - only TypeScript's type
checking is enhanced.
Casts a mutable type
T
to itsDeepReadonly<T>
equivalent, recursively adding readonly modifiers.This is a safe type assertion that adds immutability constraints at ALL levels of nesting. Provides complete protection against mutations in complex data structures. The runtime value is unchanged - only TypeScript's type checking is enhanced.