UNPKG

738 BTypeScriptView Raw
1import { Entity } from '../entity';
2import { Expandable, Constructable } 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 * @typeparam EntityT - Type of the entity to expand on
6 * @param expands - The expands to transform to a query parameter
7 * @param entityConstructor - Constructor type of the entity to expand on
8 * @returns An object containing the query parameter or an empty object
9 */
10export declare function getExpand<EntityT extends Entity>(expands: Expandable<EntityT>[] | undefined, entityConstructor: Constructable<EntityT>): Partial<{
11 expand: string;
12}>;
13export { getExpand as getExpandV4 };
14//# sourceMappingURL=get-expand.d.ts.map
\No newline at end of file