UNPKG

typeorm

Version:

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

7 lines (6 loc) 165 B
/** * Pick only the keys that match the Type `U` */ export type PickKeysByType<T, U> = string & keyof { [P in keyof T as T[P] extends U ? P : never]: T[P]; };