UNPKG

863 BTypeScriptView Raw
1import { Entity } from '../entity';
2import { Link } from '../selectable/link';
3import type { Orderable } from './orderable';
4/**
5 * Link to represent an order by on a linked entity.
6 * @typeparam EntityT - Type of the entity to link from
7 * @typeparam LinkedEntityT - Type of the entity to link to
8 */
9export declare class OrderLink<EntityT extends Entity, LinkedEntityT extends Entity> {
10 link: Link<EntityT, LinkedEntityT>;
11 orderBy: Orderable<LinkedEntityT>[];
12 readonly entityType: EntityT;
13 readonly linkedEntityType: LinkedEntityT;
14 /**
15 * Creates an instance of OrderLink.
16 * @param link - Link to the entity to order by
17 * @param orderBy - A list of orderables based on the linked entity
18 */
19 constructor(link: Link<EntityT, LinkedEntityT>, orderBy: Orderable<LinkedEntityT>[]);
20}
21//# sourceMappingURL=order-link.d.ts.map
\No newline at end of file