UNPKG

1 kBTypeScriptView Raw
1import { EdmTypeShared } from '../edm-types';
2/**
3 * Internal representation of function import parameters. It adds metadata to the value.
4 * @typeparam ValueT - Type of the value
5 */
6export declare class FunctionImportParameter<ValueT> {
7 originalName: string;
8 edmType: EdmTypeShared<'any'>;
9 value: ValueT;
10 /**
11 * Creates an instance of FunctionImportParameter.
12 * @param originalName - The original name of the parameter in the OData service.
13 * @param edmType - Original EDM type.
14 * @param value - Value to be used as parameter.
15 */
16 constructor(originalName: string, edmType: EdmTypeShared<'any'>, value: ValueT);
17}
18/**
19 * Internal representation of all parameters of a function import as a map
20 * @typeparam ParametersT - External representation of all parameters
21 */
22export declare type FunctionImportParameters<ParametersT> = {
23 [K in keyof ParametersT]: FunctionImportParameter<ParametersT[K]>;
24};
25//# sourceMappingURL=function-import-parameter.d.ts.map
\No newline at end of file