typed-wx-api
Version:
Typed Wechat API
18 lines • 591 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyMixins = void 0;
/**
* @internal
* @param derivedCtor
* @param constructors
*/
function applyMixins(derivedCtor, constructors) {
constructors.forEach((baseCtor) => {
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name) ||
Object.create(null));
});
});
}
exports.applyMixins = applyMixins;
//# sourceMappingURL=utils.js.map