UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

13 lines (12 loc) 624 B
import { RouteDefinition } from './route_config_decorator'; import { Type } from 'angular2/src/facade/lang'; import { RouteRegistry } from '../route_registry'; /** * 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;