docs: function (config) {
          if (typeof config !== 'object') {
              throw new Error('Invalid Route Config');
          }
          if (typeof config.route !== 'string') {
              var name_1 = config.name || '(no name)';
              throw new Error('Invalid Route Config for "' + name_1 + '": You must specify a "route:" pattern.');
          }
          if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
              throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
          }
      }