UNPKG

@codemask-labs/node-config

Version:
13 lines 462 B
"use strict"; 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