applyMixin.js 390 B

12345678
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function applyMixin(derivedConstructor, mixinConstructor) {
  4. Object.getOwnPropertyNames(mixinConstructor.prototype).forEach((name) => {
  5. Object.defineProperty(derivedConstructor.prototype, name, Object.getOwnPropertyDescriptor(mixinConstructor.prototype, name));
  6. });
  7. }
  8. exports.default = applyMixin;