1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | /* tslint:disable:prefer-function-over-method */
|
4 | const config = require("config");
|
5 | class 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 | }
|
16 | exports.default = Config;
|
17 | //# sourceMappingURL=ConfigProvider.js.map |
\ | No newline at end of file |