youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
15 lines (14 loc) • 570 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyMixins = void 0;
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
const applyMixins = (derivedCtor, baseCtors) => {
baseCtors.forEach((baseCtor) => {
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
if (name !== "constructor") {
derivedCtor.prototype[name] = baseCtor.prototype[name];
}
});
});
};
exports.applyMixins = applyMixins;