docs: change Navigation from type to interface (#42281)
Navigation type should be interface so it can be documented on aio site. fixes #37384 PR Close #42281
This commit is contained in:
parent
2b7dc15655
commit
6a2e3e2b2c
12
goldens/public-api/router/router.d.ts
vendored
12
goldens/public-api/router/router.d.ts
vendored
@ -169,15 +169,15 @@ export declare type LoadChildren = LoadChildrenCallback | DeprecatedLoadChildren
|
|||||||
|
|
||||||
export declare type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Observable<Type<any>> | Promise<NgModuleFactory<any> | Type<any> | any>;
|
export declare type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Observable<Type<any>> | Promise<NgModuleFactory<any> | Type<any> | any>;
|
||||||
|
|
||||||
export declare type Navigation = {
|
export declare interface Navigation {
|
||||||
|
extractedUrl: UrlTree;
|
||||||
|
extras: NavigationExtras;
|
||||||
|
finalUrl?: UrlTree;
|
||||||
id: number;
|
id: number;
|
||||||
initialUrl: string | UrlTree;
|
initialUrl: string | UrlTree;
|
||||||
extractedUrl: UrlTree;
|
|
||||||
finalUrl?: UrlTree;
|
|
||||||
trigger: 'imperative' | 'popstate' | 'hashchange';
|
|
||||||
extras: NavigationExtras;
|
|
||||||
previousNavigation: Navigation | null;
|
previousNavigation: Navigation | null;
|
||||||
};
|
trigger: 'imperative' | 'popstate' | 'hashchange';
|
||||||
|
}
|
||||||
|
|
||||||
export declare interface NavigationBehaviorOptions {
|
export declare interface NavigationBehaviorOptions {
|
||||||
replaceUrl?: boolean;
|
replaceUrl?: boolean;
|
||||||
|
@ -260,7 +260,7 @@ export type RestoredState = {
|
|||||||
*
|
*
|
||||||
* @publicApi
|
* @publicApi
|
||||||
*/
|
*/
|
||||||
export type Navigation = {
|
export interface Navigation {
|
||||||
/**
|
/**
|
||||||
* The unique identifier of the current navigation.
|
* The unique identifier of the current navigation.
|
||||||
*/
|
*/
|
||||||
@ -299,7 +299,7 @@ export type Navigation = {
|
|||||||
* for its own `previousNavigation`.
|
* for its own `previousNavigation`.
|
||||||
*/
|
*/
|
||||||
previousNavigation: Navigation|null;
|
previousNavigation: Navigation|null;
|
||||||
};
|
}
|
||||||
|
|
||||||
export type NavigationTransition = {
|
export type NavigationTransition = {
|
||||||
id: number,
|
id: number,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user