From 676bb0fa7d8cd1fbaf3c7eaec3737135829498f1 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Fri, 16 Sep 2016 17:31:24 -0700 Subject: [PATCH] feat(router): update dts files --- tools/public_api_guard/router/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/public_api_guard/router/index.d.ts b/tools/public_api_guard/router/index.d.ts index 21bf0e3e96..a2fd10639d 100644 --- a/tools/public_api_guard/router/index.d.ts +++ b/tools/public_api_guard/router/index.d.ts @@ -74,6 +74,7 @@ export interface ExtraOptions { enableTracing?: boolean; errorHandler?: ErrorHandler; initialNavigation?: boolean; + preloadingStrategy?: any; useHash?: boolean; } @@ -140,11 +141,26 @@ export declare class NavigationStart { toString(): string; } +/** @experimental */ +export declare class NoPreloading implements PreloadingStrategy { + preload(route: Route, fn: () => Observable): Observable; +} + /** @stable */ export declare type Params = { [key: string]: any; }; +/** @experimental */ +export declare class PreloadAllModules implements PreloadingStrategy { + preload(route: Route, fn: () => Observable): Observable; +} + +/** @experimental */ +export declare abstract class PreloadingStrategy { + abstract preload(route: Route, fn: () => Observable): Observable; +} + /** @stable */ export declare const PRIMARY_OUTLET: string;