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

PR Close #29832
This commit is contained in:
Filipe Silva
2019-04-11 14:23:17 +01:00
committed by Alex Rickabaugh
parent bd3164f88a
commit 2bfb6a02e2
2 changed files with 3 additions and 3 deletions

View File

@ -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>;
/**
*