DeepPartial
Generic types: | T |
Type describing partial object from another, by getting every sub-child of provided type in itself.
Presentation
type DeepPartial = T extends object
? {
[P in keyof T]?: DeepPartial <T[P]>;
}
: T;
Generic types: | T |
Type describing partial object from another, by getting every sub-child of provided type in itself.
type DeepPartial = T extends object
? {
[P in keyof T]?: DeepPartial <T[P]>;
}
: T;