UNPKG

battlemetrics

Version:

A Promise-Based Battlemetrics API Wrapper

16 lines (15 loc) 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.applyMixins = void 0; const applyMixins = (derivedCtor, baseCtors) => { baseCtors.forEach((baseCtor) => { Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => { const baseCtorName = Object.getOwnPropertyDescriptor(baseCtor.prototype, name); if (!baseCtorName) { return; } Object.defineProperty(derivedCtor.prototype, name, baseCtorName); }); }); }; exports.applyMixins = applyMixins;