1 | import { Getter } from '@loopback/core';
|
2 | import { DataObject, Options } from '../../common-types';
|
3 | import { Entity } from '../../model';
|
4 | import { EntityCrudRepository } from '../../repositories';
|
5 |
|
6 |
|
7 |
|
8 | export interface ReferencesManyRepository<Target extends Entity> {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | get(options?: Options): Promise<Target>;
|
16 | }
|
17 | export declare class DefaultReferencesManyRepository<TargetEntity extends Entity, TargetIds, TargetRepository extends EntityCrudRepository<TargetEntity, TargetIds>> implements ReferencesManyRepository<TargetEntity> {
|
18 | getTargetRepository: Getter<TargetRepository>;
|
19 | constraint: DataObject<TargetEntity>;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | constructor(getTargetRepository: Getter<TargetRepository>, constraint: DataObject<TargetEntity>);
|
27 | get(options?: Options): Promise<TargetEntity>;
|
28 | }
|