UNPKG

@angular/router-deprecated

Version:
13 lines (12 loc) 602 B
import { Type } from '../facade/lang'; import { RouteRegistry } from '../route_registry'; import { RouteDefinition } from './route_config_decorator'; /** * Given a JS Object that represents a route config, returns a corresponding Route, AsyncRoute, * AuxRoute or Redirect object. * * Also wraps an AsyncRoute's loader function to add the loaded component's route config to the * `RouteRegistry`. */ export declare function normalizeRouteConfig(config: RouteDefinition, registry: RouteRegistry): RouteDefinition; export declare function assertComponentExists(component: Type, path: string): void;