UNPKG

754 BTypeScriptView Raw
1import { Entity } from '../entity';
2import { Selectable } from '../../odata-common';
3/**
4 * Get an object containing the given expand as a query parameter, or an empty object if none was given.
5 * In this OData v2 expand, selected properties are automatically added to the expand.
6 * @typeparam EntityT - Type of the entity to expand on
7 * @param selects - The selects which are expanded if necessary
8 * @param entityConstructor - Constructor type of the entity to expand on
9 * @returns An object containing the query parameter or an empty object
10 */
11export declare function getExpand<EntityT extends Entity>(selects?: Selectable<EntityT>[]): Partial<{
12 expand: string;
13}>;
14export { getExpand as getExpandV2 };
15//# sourceMappingURL=get-expand.d.ts.map
\No newline at end of file