UNPKG

@blinkk/selective-edit

Version:
19 lines 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UuidMixin = void 0; const uuid_1 = require("../utility/uuid"); function UuidMixin(Base) { return class UuidClass extends Base { get uuid() { if (!this._uuid) { this._uuid = (0, uuid_1.generateUUID)(); } return this._uuid; } get uid() { return this.uuid.slice(0, 8); } }; } exports.UuidMixin = UuidMixin; //# sourceMappingURL=uuid.js.map