UNPKG

anyid

Version:

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

21 lines 506 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("./core"); const utils_1 = require("./utils"); class FixedValue extends core_1.Value { constructor(owner, v) { super(owner); this.v = v; } value() { return this.returnValue(this.v); } } class Fixed { fixed(v) { this.addValue(new FixedValue(this, utils_1.toBuffer(v))); return this; } } exports.Fixed = Fixed; //# sourceMappingURL=fixed.js.map