ts-flex-query
Version:
Flexible and type-safe data queries
19 lines • 621 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecifyTypeExpression = void 0;
exports.specifyType = specifyType;
const helpers_1 = require("../helpers");
class SpecifyTypeExpression {
constructor(input, dataType) {
this.input = input;
this.dataType = dataType;
}
evaluate(context) {
return (0, helpers_1.evaluateExpression)(this.input, context);
}
}
exports.SpecifyTypeExpression = SpecifyTypeExpression;
function specifyType(input, dataType) {
return new SpecifyTypeExpression(input, dataType);
}
//# sourceMappingURL=specify-type.js.map