UNPKG

@elium/mighty

Version:

Context agnostic TS & JS ORM

19 lines 550 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Store = (function () { function Store() { this._resources = {}; } Store.prototype.getAll = function () { return this._resources; }; Store.prototype.get = function (identity) { return this._resources[identity]; }; Store.prototype.set = function (resource) { this._resources[resource.identity] = resource; }; return Store; }()); exports.Store = Store; //# sourceMappingURL=store.js.map