UNPKG

typeorm-translatable

Version:

Translation classes, utils and decorators for i18n in TypeORM

23 lines (22 loc) 456 B
export interface ITranslationEntity<T> { /** * Source entity */ source?: T; /** * Id of translation */ id?: string; /** * Locale of translation */ locale?: string; } /** * Entity that contains translations for source entity */ export declare abstract class TranslationEntity<T> implements ITranslationEntity<T> { abstract source?: T; id?: string; locale?: string; }