Interface IEntityClass<TFields, TID, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>
interface IEntityClass<TFields, TID, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields> { new IEntityClassnew (constructorParam: { databaseFields: Readonly<TFields>; id: TID; selectedFields: Readonly<Pick<TFields, TSelectedFields>>; viewerContext: TViewerContext; }): TEntity; defineCompanionDefinition(): EntityCompanionDefinition<TFields, TID, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>; } Constructors
constructor
- new IEntityClass(constructorParam): TEntity
Methods
defineCompanionDefinition
An interface to pass in constructor (class) of an Entity as a function argument.