mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 05:38:03 +00:00
18 lines
518 B
JavaScript
18 lines
518 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = inherits;
|
|
function inherits(child, parent) {
|
|
if (parent) {
|
|
child.super_ = parent;
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
child.prototype = Object.create(parent.prototype, {
|
|
constructor: {
|
|
configurable: true,
|
|
enumerable: false,
|
|
value: child,
|
|
writable: true
|
|
}
|
|
});
|
|
}
|
|
}
|