UNPKG

@n8n/typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports PostgreSQL and SQLite 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]; };