async-constructor
Version:
The helper functions for creating classes that require asynchronous constructors.
14 lines • 490 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mixinAsyncConstructor = void 0;
const append_1 = require("./append");
function mixinAsyncConstructor(base, asyncConstructor) {
return class extends base {
constructor(...args) {
super(...args);
(0, append_1.appendAsyncConstructor)(this, asyncConstructor, args);
}
};
}
exports.mixinAsyncConstructor = mixinAsyncConstructor;
//# sourceMappingURL=mixin.js.map