UNPKG

1.89 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = function (d, b) {
4 extendStatics = Object.setPrototypeOf ||
5 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7 return extendStatics(d, b);
8 };
9 return function (d, b) {
10 if (typeof b !== "function" && b !== null)
11 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12 extendStatics(d, b);
13 function __() { this.constructor = d; }
14 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15 };
16})();
17Object.defineProperty(exports, "__esModule", { value: true });
18exports.NumberFilterFunction = void 0;
19var orderable_filter_function_1 = require("./orderable-filter-function");
20/**
21 * Representation of a filter function, that returns a value of type number. This supports int, double and decimal values.
22 */
23var NumberFilterFunction = /** @class */ (function (_super) {
24 __extends(NumberFilterFunction, _super);
25 /**
26 * Creates an instance of NumberFilterFunction.
27 * @param functionName - Name of the function that returns a numeric value
28 * @param parameters - Representation of the parameters passed to the filter function
29 * @param edmType - Type of the returned numeric value. This influences the formatting of the returned value.
30 */
31 function NumberFilterFunction(functionName, parameters, edmType) {
32 return _super.call(this, functionName, parameters, edmType) || this;
33 }
34 return NumberFilterFunction;
35}(orderable_filter_function_1.OrderableFilterFunction));
36exports.NumberFilterFunction = NumberFilterFunction;
37//# sourceMappingURL=number-filter-function.js.map
\No newline at end of file