type Primitive = undefined | null | boolean | string | number | symbol | bigint; /** * Create a deeply immutable type from a type that may contain mutable types. */ export type Immutable = T extends Primitive ? T : T extends ReadonlyArray ? ImmutableArray : ImmutableObject; export type ImmutableArray = ReadonlyArray>; export type ImmutableObject = { readonly [K in keyof T]: Immutable; }; export {}; //# sourceMappingURL=immutable.d.ts.map