UNPKG

@beenotung/tslib

Version:
22 lines 644 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.muteObject = void 0; const noop = () => { return noop; }; // e.g. to mute cli-progress (progress bar) function muteObject(target) { let prototype = target; while (prototype !== null) { for (const name of Object.getOwnPropertyNames(prototype)) { const value = target[name]; if (typeof value === 'function') { ; target[name] = noop; } } prototype = Object.getPrototypeOf(prototype); } } exports.muteObject = muteObject; //# sourceMappingURL=debug.js.map