UNPKG

647 BTypeScriptView Raw
1import { Orderable } from '../../odata-common';
2import { Entity } from '../entity';
3/**
4 * @deprecated Since v1.21.0. Use [[ODataUri.getOrderBy]] instead.
5 * Get an object containing the given order bys as query parameter, or an empty object if none was given.
6 * @typeparam EntityT - Type of the entity to order
7 * @param orderBy - A list of orderables to get the query parameters for
8 * @returns An object containing the query parameter or an empty object
9 */
10export declare function getQueryParametersForOrderBy<EntityT extends Entity>(orderBy: Orderable<EntityT>[]): Partial<{
11 orderby: string;
12}>;
13//# sourceMappingURL=get-orderby.d.ts.map
\No newline at end of file