UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

25 lines 817 B
var Deferred = /** @class */ (function () { function Deferred() { var _this = this; this._promise = new Promise(function (resolve, reject) { _this._resolve = resolve; _this._reject = reject; }); } Object.defineProperty(Deferred.prototype, "promise", { get: function () { return this._promise; }, enumerable: true, configurable: true }); Deferred.prototype.resolve = function (value) { this === null || this === void 0 ? void 0 : this._resolve(value); }; Deferred.prototype.reject = function (error) { this === null || this === void 0 ? void 0 : this._reject(error); }; return Deferred; }()); export { Deferred }; //# sourceMappingURL=Deferred.js.map