Skip to content
Permalink
Browse files

fix(router): support non-NgFactory promise in loadChildren typings (#…

…29832)

PR Close #29832
  • Loading branch information...
filipesilva authored and alxhub committed Apr 11, 2019
1 parent bd3164f commit 2bfb6a02e28ceacccea3502491624586f55d4fdf
Showing with 3 additions and 3 deletions.
  1. +2 −2 packages/router/src/config.ts
  2. +1 −1 tools/public_api_guard/router/router.d.ts
@@ -97,8 +97,8 @@ export type ResolveData = {
* @see `Route#loadChildren`.
* @publicApi
*/
export type LoadChildrenCallback = () => Type<any>| NgModuleFactory<any>|
Promise<NgModuleFactory<any>>| Promise<Type<any>>| Observable<Type<any>>;
export type LoadChildrenCallback = () => Type<any>| NgModuleFactory<any>| Observable<Type<any>>|
Promise<NgModuleFactory<any>|Type<any>|any>;

/**
*
@@ -147,7 +147,7 @@ export declare class GuardsCheckStart extends RouterEvent {

export declare type LoadChildren = string | LoadChildrenCallback;

export declare type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Promise<NgModuleFactory<any>> | Promise<Type<any>> | Observable<Type<any>>;
export declare type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Observable<Type<any>> | Promise<NgModuleFactory<any> | Type<any> | any>;

export declare type Navigation = {
id: number;

0 comments on commit 2bfb6a0

Please sign in to comment.
You can’t perform that action at this time.