1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
/**
|
9
|
* This is a private API for the ngtools toolkit.
|
10
|
*
|
11
|
* This API should be stable for NG 2. It can be removed in NG 4..., but should be replaced by
|
12
|
* something else.
|
13
|
*/
|
14
|
import { AotCompilerHost, StaticReflector } from '@angular/compiler';
|
15
|
export interface LazyRoute {
|
16
|
routeDef: RouteDef;
|
17
|
absoluteFilePath: string;
|
18
|
}
|
19
|
export declare type LazyRouteMap = {
|
20
|
[route: string]: LazyRoute;
|
21
|
};
|
22
|
export declare class RouteDef {
|
23
|
readonly path: string;
|
24
|
readonly className: string | null;
|
25
|
private constructor(path, className?);
|
26
|
toString(): string;
|
27
|
static fromString(entry: string): RouteDef;
|
28
|
}
|
29
|
/**
|
30
|
*
|
31
|
* @returns {LazyRouteMap}
|
32
|
* @private
|
33
|
*/
|
34
|
export declare function listLazyRoutesOfModule(entryModule: string, host: AotCompilerHost, reflector: StaticReflector): LazyRouteMap;
|
35
|
export declare function flatten<T>(list: Array<T | T[]>): T[];
|