Repository URL to install this package:
|
Version:
1.1.21 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setConfig = exports.config = void 0;
var _exotic = require("../../exotic");
const config = new Map();
exports.config = config;
const setConfig = x => {
Object.keys(x).forEach(key => config.set(key, x[key]));
const pathParams = config.get('pathParams');
const routePathsList = (0, _exotic.isObj)(pathParams) ? Object.values(pathParams) : _exotic.EMPTY_ARRAY;
config.set('routePathsList', routePathsList);
};
exports.setConfig = setConfig;
setConfig({
pathParams: {},
routes: []
});