Page Contents

Home > @loopback/repository-tests > CrudRepositoryCtor

CrudRepositoryCtor type

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

Signature:

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