UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

15 lines (14 loc) 387 B
/** * Wrapper type for relation type definitions in entities. * Used to circumvent ESM modules circular dependency issue caused by reflection metadata saving the type of the property. * * Usage example: * @Entity() * export default class User { * * @OneToOne(() => Profile, profile => profile.user) * profile: Relation<Profile>; * * } */ export type Relation<T> = T;