UNPKG

841 BTypeScriptView Raw
1import { Entity } from '../entity';
2import { Selectable } from '../../odata-common';
3/**
4 * @deprecated Since v1.21.0. Use [[ODataUri.getSelect]] and [[ODataUri.getExpand]] instead.
5 *
6 * Get an object containing the given Selectables as query parameter, or an empty object if none were given.
7 * This retrieves where in addition to the selection (`select`) there is also an expansion (`expand`) needed.
8 * @typeparam EntityT - Type of the entity to get the selection for
9 * @param selects - The list of selectables to be transformed to query parameters
10 * @returns An object containing the query parameters or an empty object
11 */
12export declare function getQueryParametersForSelection<EntityT extends Entity>(selects?: Selectable<EntityT>[]): Partial<{
13 select: string;
14 expand: string;
15}>;
16//# sourceMappingURL=get-selection.d.ts.map
\No newline at end of file