mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This PR updates TypeScript version to 3.7 while retaining compatibility with TS3.6. PR Close #33717
17 lines
1,020 B
TypeScript
17 lines
1,020 B
TypeScript
export declare class RouterTestingModule {
|
|
static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule>;
|
|
}
|
|
|
|
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router;
|
|
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy): Router;
|
|
|
|
export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
|
|
set stubbedModules(modules: {
|
|
[path: string]: any;
|
|
});
|
|
get stubbedModules(): {
|
|
[path: string]: any;
|
|
};
|
|
constructor(compiler: Compiler);
|
|
load(path: string): Promise<NgModuleFactory<any>>;
|
|
}
|