Interface IEntityClass<TFields, TID, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>

An interface to pass in constructor (class) of an Entity as a function argument.

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>;
}

Type Parameters

Constructors

Methods