UNPKG

@qiwi/cyclone

Version:

"State machine" for basic purposes

20 lines (19 loc) 527 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Registry = void 0; var Registry = /** @class */ (function () { function Registry() { this.store = {}; } Registry.prototype.get = function (key) { return this.store[key]; }; Registry.prototype.add = function (key, value) { this.store[key] = value; }; Registry.prototype.remove = function (key) { delete this.store[key]; }; return Registry; }()); exports.Registry = Registry;