import { Obj, Merge } from './index'; import { PickAsReadonly, PickAsMutable } from './pick'; /** * Defines the same type as `TObj` but with `readonly` modifier removed from its `TKeys`. * @param TObj Object type to make `TKeys` mutable in. * @param TKeys Union type of keys that will be defined as mutable in the resulting type. */ export declare type Mutable = Merge>; /** * Defines the same type as `TObj` but with `readonly` modifier removed from its properties recursively. * @param TObj Target object type to make its properties recursively mutable. */ export declare type DeepMutable = { -readonly [TKey in keyof TObj]: TObj[TKey] extends infer TVal ? (TVal extends Obj ? DeepMutable : TVal) : never; }; /** * Defines the same type as `TObj` but with `readonly` modifier added to its properties recursively. * @param TObj Target object type to make its properties recursively readonly. */ export declare type DeepReadonly = { +readonly [TKey in keyof TObj]: TObj[TKey] extends infer TVal ? (TVal extends Obj ? DeepReadonly : TVal) : never; }; /** * Defines the same type as `TObj` but with `TKeys` made readonly. * @param TObj Object type to make `TKeys` readonly in. * @param TKeys Union type of keys that will be defined as readonly in the resulting type. */ export declare type Readonly = Merge>; //# sourceMappingURL=readonly-mutable.d.ts.map