@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
21 lines • 863 B
TypeScript
import { Entity } from '../entity';
import { Link } from '../selectable/link';
import type { Orderable } from './orderable';
/**
* Link to represent an order by on a linked entity.
* @typeparam EntityT - Type of the entity to link from
* @typeparam LinkedEntityT - Type of the entity to link to
*/
export declare class OrderLink<EntityT extends Entity, LinkedEntityT extends Entity> {
link: Link<EntityT, LinkedEntityT>;
orderBy: Orderable<LinkedEntityT>[];
readonly entityType: EntityT;
readonly linkedEntityType: LinkedEntityT;
/**
* Creates an instance of OrderLink.
* @param link - Link to the entity to order by
* @param orderBy - A list of orderables based on the linked entity
*/
constructor(link: Link<EntityT, LinkedEntityT>, orderBy: Orderable<LinkedEntityT>[]);
}
//# sourceMappingURL=order-link.d.ts.map