@codemask-labs/node-config
Version:
Node Config Module
13 lines • 462 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConfigValue = void 0;
const module_1 = require("../module");
const getConfigValue = (constructor, getter) => {
const instance = (0, module_1.getConfigInstance)(constructor);
if (!instance) {
throw new Error('Failed to find instance');
}
return getter(instance);
};
exports.getConfigValue = getConfigValue;
//# sourceMappingURL=get-config-value.js.map