1 | import { Entity, EntityIdentifiable, Constructable } from '../entity';
|
2 | declare type OrderType = 'asc' | 'desc';
|
3 | /**
|
4 | * OData queries take this to determine the order of results.
|
5 | * @typeparam EntityT -
|
6 | */
|
7 | export declare class Order<EntityT extends Entity> implements EntityIdentifiable<EntityT> {
|
8 | _fieldName: string;
|
9 | orderType: OrderType;
|
10 | readonly _entityConstructor: Constructable<EntityT>;
|
11 | readonly _entity: EntityT;
|
12 | /**
|
13 | * Creates an instance of Order.
|
14 | * @param _fieldName - Field to order by
|
15 | * @param orderType - Type of ordering, can be 'asc' for ascending or 'desc' for descending
|
16 | */
|
17 | constructor(_fieldName: string, orderType?: OrderType);
|
18 | }
|
19 | export {};
|
20 | //# sourceMappingURL=order.d.ts.map |
\ | No newline at end of file |