UNPKG

745 BTypeScriptView Raw
1import { Entity } from '../entity';
2import { Selectable } from '../../odata-common';
3/**
4 * Get an object containing the given Selectables as query parameter, or an empty object if none were given.
5 * In OData v4 selected properties are not automatically expanded anymore and a manual expand needs to be performed.
6 * @typeparam EntityT - Type of the entity to get the selection for
7 * @param selects - The list of selectables to be transformed to query parameters
8 * @returns An object containing the query parameters or an empty object
9 */
10export declare function getSelect<EntityT extends Entity>(selects?: Selectable<EntityT>[]): Partial<{
11 select: string;
12}>;
13export { getSelect as getSelectV4 };
14//# sourceMappingURL=get-select.d.ts.map
\No newline at end of file