/** * @see https://github.com/Microsoft/TypeScript/issues/30082#issuecomment-467028447 */ export type DeepPartial = T extends object ? { [K in keyof T]?: DeepPartial; } : T;