UNPKG

602 BTypeScriptView Raw
1import { Type } from '../facade/lang';
2import { RouteRegistry } from '../route_registry';
3import { RouteDefinition } from './route_config_decorator';
4/**
5 * Given a JS Object that represents a route config, returns a corresponding Route, AsyncRoute,
6 * AuxRoute or Redirect object.
7 *
8 * Also wraps an AsyncRoute's loader function to add the loaded component's route config to the
9 * `RouteRegistry`.
10 */
11export declare function normalizeRouteConfig(config: RouteDefinition, registry: RouteRegistry): RouteDefinition;
12export declare function assertComponentExists(component: Type, path: string): void;