@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
16 lines • 453 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FnValue = void 0;
const Value_1 = require("./Value");
class FnValue extends Value_1.Value {
async exec(input, ctx) {
const fn = this.data;
const output = await fn(input, ctx);
return new Value_1.Value(output, this.type.res);
}
name() {
return 'FnValue';
}
}
exports.FnValue = FnValue;
//# sourceMappingURL=FnValue.js.map