fix(router): support non-NgFactory promise in loadChildren typings (#29832)
PR Close #29832
This commit is contained in:
parent
bd3164f88a
commit
2bfb6a02e2
@ -97,8 +97,8 @@ export type ResolveData = {
|
|||||||
* @see `Route#loadChildren`.
|
* @see `Route#loadChildren`.
|
||||||
* @publicApi
|
* @publicApi
|
||||||
*/
|
*/
|
||||||
export type LoadChildrenCallback = () => Type<any>| NgModuleFactory<any>|
|
export type LoadChildrenCallback = () => Type<any>| NgModuleFactory<any>| Observable<Type<any>>|
|
||||||
Promise<NgModuleFactory<any>>| Promise<Type<any>>| Observable<Type<any>>;
|
Promise<NgModuleFactory<any>|Type<any>|any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
2
tools/public_api_guard/router/router.d.ts
vendored
2
tools/public_api_guard/router/router.d.ts
vendored
@ -147,7 +147,7 @@ export declare class GuardsCheckStart extends RouterEvent {
|
|||||||
|
|
||||||
export declare type LoadChildren = string | LoadChildrenCallback;
|
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 = {
|
export declare type Navigation = {
|
||||||
id: number;
|
id: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user