RepositoryStorageClassMixIn
Function: RepositoryStorageClassMixIn()
RepositoryStorageClassMixIn<
TBase>(Base):TBase&RepositoryStorageMethods& (new (...args) =>RepositoryStorageInstance)
Defined in: packages/models/src/repositories/hooks.ts:128
MixIn that adds static repository methods (create, query, iterate, ref, getRepository) to a base class, enabling Model classes to access their repository directly.
Type Parameters
TBase
TBase extends new (...args) => object
Parameters
Base
TBase
The base class to augment
Returns
TBase & RepositoryStorageMethods & (new (...args) => RepositoryStorageInstance)
the augmented class with repository methods