type-r2
Version:
Serializable, validated, and observable data layer for modern JS applications
3 lines (2 loc) • 1.01 kB
JavaScript
!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((t="undefined"!=typeof globalThis?globalThis:t||self).attributesIO={})}(this,function(t){"use strict";function o(){return new e}n.prototype.create=function(t,o){throw new Error("Method is not supported.")},n.prototype.update=function(t,o,e){throw new Error("Method is not supported.")},n.prototype.read=function(t,o,e){var n=e.keys().filter(function(t){return e[t]&&e[t].fetch}).map(function(t){return e[t].fetch(o)}),r=Promise.all(n).then(function(){});return r.abort=function(){n.forEach(function(t){return t.abort&&t.abort()})},r},n.prototype.destroy=function(t,o){throw new Error("Method is not supported.")},n.prototype.list=function(t){throw new Error("Method is not supported.")},n.prototype.subscribe=function(t){},n.prototype.unsubscribe=function(t){};var e=n;function n(){}t.AttributesEndpoint=e,t.attributesIO=o,t.create=o});
//# sourceMappingURL=index.js.map