UNPKG

anyid

Version:

A simple and flexible API to generate various kinds of string ID / code.

20 lines 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("./core"); class FunctionValue extends core_1.Value { constructor(owner, f) { super(owner); this.f = f; } value() { return this.returnValue(this.f()); } } class Func { of(f) { this.addValue(new FunctionValue(this, f)); return this; } } exports.Func = Func; //# sourceMappingURL=function.js.map