Page Contents

Home > @loopback/repository-tests > TransactionalRepositoryCtor

TransactionalRepositoryCtor type

A constructor of a class implementing TransactionalRepository interface, accepting the Entity class (constructor) and a dataSource instance.

Signature:

export type TransactionalRepositoryCtor = new <T extends Entity, ID, Relations extends object>(entityClass: typeof Entity & {
    prototype: T;
}, dataSource: juggler.DataSource) => TransactionalEntityRepository<T, ID, Relations>;