Skip to content

Overview / BetterReadonly

BetterReadonly<T, Deep>

BetterReadonly<T, Deep>: { readonly [Key in keyof T]: Deep extends true ? T[Key] extends object ? BetterReadonly<T[Key]> : T[Key] : T[Key] }

Type Parameters

Type ParameterDefault type
T-
Deep extends booleantrue

Released under the GPL-3.0 License.