configuration.js 315 B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.verifyConfig = verifyConfig;
  4. const errors_1 = require("./errors");
  5. function verifyConfig(options) {
  6. if (!options.target && !options.router) {
  7. throw new Error(errors_1.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING);
  8. }
  9. }