@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
14 lines • 738 B
TypeScript
import { Entity } from '../entity';
import { Expandable, Constructable } from '../../odata-common';
/**
* Get an object containing the given expand as a query parameter, or an empty object if none was given.
* @typeparam EntityT - Type of the entity to expand on
* @param expands - The expands to transform to a query parameter
* @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>(expands: Expandable<EntityT>[] | undefined, entityConstructor: Constructable<EntityT>): Partial<{
expand: string;
}>;
export { getExpand as getExpandV4 };
//# sourceMappingURL=get-expand.d.ts.map