UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, 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]; };