- deepFreeze<T extends object, TReadonly extends boolean = true>(
obj: T,
options?: { readonlyType: TReadonly },
): TReadonly extends true ? ReadonlyDeep<T> : T Type Parameters
- T extends object
- TReadonly extends boolean = true
Parameters
- obj: T
Optional
options: { readonlyType: TReadonly }