UNPKG

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