UNPKG

@sap-cloud-sdk/core

Version:
15 lines 754 B
import { Entity } from '../entity'; import { Selectable } from '../../odata-common'; /** * Get an object containing the given expand as a query parameter, or an empty object if none was given. * In this OData v2 expand, selected properties are automatically added to the expand. * @typeparam EntityT - Type of the entity to expand on * @param selects - The selects which are expanded if necessary * @param entityConstructor - Constructor type of the entity to expand on * @returns An object containing the query parameter or an empty object */ export declare function getExpand<EntityT extends Entity>(selects?: Selectable<EntityT>[]): Partial<{ expand: string; }>; export { getExpand as getExpandV2 }; //# sourceMappingURL=get-expand.d.ts.map