UNPKG

484 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/common/DeepPartial.ts"],"names":[],"mappings":"","file":"DeepPartial.js","sourcesContent":["/**\n * Same as Partial<T> but goes deeper and makes Partial<T> all its properties and sub-properties.\n */\nexport type DeepPartial<T> = {\n [P in keyof T]?:\n T[P] extends Array<infer U> ? Array<DeepPartial<U>> :\n T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> :\n DeepPartial<T[P]>\n};\n"],"sourceRoot":".."}
\No newline at end of file