UNPKG

661 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/query-builder/QueryPartialEntity.ts"],"names":[],"mappings":"","file":"QueryPartialEntity.js","sourcesContent":["\n/**\n * Make all properties in T optional\n */\nexport type QueryPartialEntity<T> = {\n [P in keyof T]?: T[P] | (() => string);\n};\n\n/**\n * Make all properties in T optional. Deep version.\n */\nexport type QueryDeepPartialEntity<T> = {\n [P in keyof T]?:\n T[P] extends Array<infer U> ? Array<QueryDeepPartialEntity<U>> :\n T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<QueryDeepPartialEntity<U>> :\n QueryDeepPartialEntity<T[P]> | (() => string);\n};\n"],"sourceRoot":".."}
\No newline at end of file