import { Obj, Merge } from './index'; import { PickAsOptional, PickAsRequired } from './pick'; /** * Defines the same type as `TObj` but all properties are made recursively `Partial<>`. * @param TObj Object type to make all properties optional. */ export declare type DeepPartial = { [TKey in keyof TObj]+?: TObj[TKey] extends infer TVal ? (TVal extends Obj ? DeepPartial : TVal) : never; }; /** * Defines the same type as `TObj` but all properties are made recursively `Required<>`. * @param TObj Object type to remove optional `?` flag from. */ export declare type DeepRequired = { [TKey in keyof TObj]-?: TObj[TKey] extends infer TVal ? (TVal extends Obj ? DeepRequired : TVal) : never; }; /** * Defines the same type as `TObj` but with `TKeys` made optional. * @param TObj Object type to make `TKeys` optional in. * @param TKeys Union type of keys that will be defined as optional in the resulting type. */ export declare type Partial = Merge>; /** * Defines the same type as `TObj` but with `TKeys` made required. * @param TObj Object type to make `TKeys` required in. * @param TKeys Union type of keys that will be defined as required in the resulting type. */ export declare type Required = Merge>; //# sourceMappingURL=partial-required.d.ts.map