UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

13 lines (12 loc) 467 B
/** * Make all properties in T optional */ export declare type QueryPartialEntity<T> = { [P in keyof T]?: T[P] | (() => string); }; /** * Make all properties in T optional. Deep version. */ export declare type QueryDeepPartialEntity<T> = { [P in keyof T]?: (T[P] extends Array<infer U> ? Array<QueryDeepPartialEntity<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<QueryDeepPartialEntity<U>> : QueryDeepPartialEntity<T[P]>) | (() => string); };