@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
21 lines (20 loc) • 728 B
TypeScript
import type { EdmTypeShared } from '../edm-types';
import type { DeSerializers } from './de-serializers';
/**
* @internal
*/
export declare function isInfOrNan(value: string | number): boolean;
/**
* As per OData URL Syntax rules, single quotes within string literals must be represented as two consecutive single quotes.
* encodeURIComponent does not encode single quotes on the high level get-filter and get-resource-path.
* @internal
*/
export declare function convertToUriForEdmString(value: any): string;
/**
* @internal
*/
export type UriConverter = (value: any, edmType: EdmTypeShared<'any'>) => string;
/**
* @internal
*/
export declare function createUriConverter(deSerializers: DeSerializers): UriConverter;