UNPKG

typeorm

Version:

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

17 lines (16 loc) 412 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. * * @example * Usage example: * ``` * \@Entity() * export default class User { * \@OneToOne(() => Profile, profile => profile.user) * profile: Relation<Profile>; * } * ``` * */ export type Relation<T> = T;