Type Alias RecursivePartial<T>
RecursivePartial: T extends (infer U)[]
? RecursivePartial<U>[]
: T extends object ? { [K in keyof T]?: RecursivePartial<T[K]> } : T
? RecursivePartial<U>[]
: T extends object ? { [K in keyof T]?: RecursivePartial<T[K]> } : T
Type Parameters
- T
Type to convert
Recursively apply
Partial<>
on records in a type