UNPKG

766 BTypeScriptView Raw
1import { Entity } from '../entity';
2import { Constructable, Filterable } from '../../odata-common';
3/**
4 * @deprecated Since v1.21.0. Use [[ODataUri.getFilter]] instead.
5 * Get an object containing the given filter as query parameter, or an empty object if none was given.
6 * @typeparam EntityT - Type of the entity to filter on
7 * @param filter - The filter to transform to a query parameter
8 * @param entityConstructor - Constructor type of the entity to filter on
9 * @returns An object containing the query parameter or an empty object
10 */
11export declare function getQueryParametersForFilter<EntityT extends Entity>(filter: Filterable<EntityT>, entityConstructor: Constructable<EntityT>): Partial<{
12 filter: string;
13}>;
14//# sourceMappingURL=get-filter.d.ts.map
\No newline at end of file