From 135ead6c97d2c49b1aac768552427717e0528cb7 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Wed, 20 Dec 2017 11:54:22 -0800 Subject: [PATCH] ci(router): update the public API guard for the router This fixes a badly applied revert earlier. --- tools/public_api_guard/router/testing.d.ts | 4 ++-- tools/public_api_guard/router/upgrade.d.ts | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/public_api_guard/router/testing.d.ts b/tools/public_api_guard/router/testing.d.ts index 5574786720..d14731865e 100644 --- a/tools/public_api_guard/router/testing.d.ts +++ b/tools/public_api_guard/router/testing.d.ts @@ -1,10 +1,10 @@ /** @stable */ export declare class RouterTestingModule { - static withRoutes(routes: Routes): ModuleWithProviders; + static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders; } /** @stable */ -export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy): Router; +export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router; /** @stable */ export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader { diff --git a/tools/public_api_guard/router/upgrade.d.ts b/tools/public_api_guard/router/upgrade.d.ts index b02fd8f6b2..2fd7d62113 100644 --- a/tools/public_api_guard/router/upgrade.d.ts +++ b/tools/public_api_guard/router/upgrade.d.ts @@ -8,6 +8,3 @@ export declare const RouterUpgradeInitializer: { /** @experimental */ export declare function setUpLocationSync(ngUpgrade: UpgradeModule): void; - -/** @experimental */ -export declare function setUpRouterSync(injector: Injector, $injector: any): void;