UNPKG

482 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/* tslint:disable:prefer-function-over-method */
4const config = require("config");
5class Config {
6 hasConfig(key) {
7 return config.has(key);
8 }
9 getConfig(key, defaultValue) {
10 if (!config.has(key) && defaultValue !== undefined) {
11 return defaultValue;
12 }
13 return config.get(key);
14 }
15}
16exports.default = Config;
17//# sourceMappingURL=ConfigProvider.js.map
\No newline at end of file