UNPKG

@integromat/proto

Version:
30 lines 1.06 kB
"use strict"; // NOTE(m.skvely): There are a lot of crimes here, we have to disable many rules to make this work /* eslint-disable @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call */ Object.defineProperty(Function.prototype, 'property', { writable: true, configurable: true, value: function (prop, descriptor) { Object.defineProperty(this.prototype, prop, descriptor); }, }); Object.defineProperty(Function.prototype, 'inherits', { writable: true, configurable: true, value: function (parent) { var child = this; for (var key in parent) { if (Object.prototype.hasOwnProperty.call(parent, key)) { child[key] = parent[key]; } } function Constructor() { this.constructor = child; } Constructor.prototype = parent.prototype; child.prototype = new Constructor(); child.__super__ = parent.prototype; return child; }, }); //# sourceMappingURL=compatibility-extensions.js.map