UNPKG

@awesome-fe/translate

Version:
28 lines 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PromiseMaker = void 0; var PromiseMaker = /** @class */ (function () { function PromiseMaker() { var _this = this; this._promise = new Promise(function (resolve, reject) { _this._resolve = resolve; _this._reject = reject; }); } Object.defineProperty(PromiseMaker.prototype, "promise", { get: function () { return this._promise; }, enumerable: false, configurable: true }); PromiseMaker.prototype.resolve = function (value) { this._resolve(value); }; PromiseMaker.prototype.reject = function (reason) { this._reject(reason); }; return PromiseMaker; }()); exports.PromiseMaker = PromiseMaker; //# sourceMappingURL=promise-maker.js.map