UNPKG

@inversifyjs/prototype-utils

Version:

Prototype related utils

9 lines 309 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBaseType = getBaseType; function getBaseType(type) { const prototype = Object.getPrototypeOf(type.prototype); const baseType = prototype?.constructor; return baseType; } //# sourceMappingURL=getBaseType.js.map