@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
18 lines • 504 B
JavaScript
export class Deferred {
constructor() {
this._promise = new Promise((resolve, reject) => {
this._resolve = resolve;
this._reject = reject;
});
}
get promise() {
return this._promise;
}
resolve(value) {
this === null || this === void 0 ? void 0 : this._resolve(value);
}
reject(error) {
this === null || this === void 0 ? void 0 : this._reject(error);
}
}
//# sourceMappingURL=Deferred.js.map