UNPKG

@sap-cloud-sdk/odata-common

Version:

SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.

16 lines (15 loc) 947 B
import { OrderableFilterFunction } from './orderable-filter-function'; import type { EntityBase } from '../entity-base'; import type { FilterFunctionParameterType } from './filter-function-base'; /** * Representation of a filter function, that returns a value of type number. This supports int, double and decimal values. */ export declare class NumberFilterFunction<EntityT extends EntityBase> extends OrderableFilterFunction<EntityT, number> { /** * Creates an instance of NumberFilterFunction. * @param functionName - Name of the function that returns a numeric value. * @param parameters - Representation of the parameters passed to the filter function. * @param edmType - Type of the returned numeric value. This influences the formatting of the returned value. */ constructor(functionName: string, parameters: FilterFunctionParameterType<EntityT>[], edmType: 'Edm.Int32' | 'Edm.Double' | 'Edm.Decimal'); }