types.partial.ts Maven / Gradle / Ivy
export type DeepPartial = {
[attr in keyof K]?: K[attr] extends object
? DeepPartial
: K[attr] extends object | null
? DeepPartial | null
: K[attr] extends object | null | undefined
? DeepPartial | null | undefined
: K[attr];
};