@@ -42,7 +42,7 @@ declare class Navigation extends EventTarget {
42
42
}
43
43
44
44
declare class NavigationTransition {
45
- readonly navigationType : NavigationNavigationType ;
45
+ readonly navigationType : NavigationType ;
46
46
readonly from : NavigationHistoryEntry ;
47
47
readonly finished : Promise < void > ;
48
48
@@ -76,8 +76,7 @@ declare class NavigationHistoryEntry extends EventTarget {
76
76
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | EventListenerOptions ) : void ;
77
77
}
78
78
79
- // TODO: use just `NavigationType` if https://github.com/w3c/navigation-timing/pull/172 goes through.
80
- type NavigationNavigationType = 'reload' | 'push' | 'replace' | 'traverse' ;
79
+ type NavigationType = 'reload' | 'push' | 'replace' | 'traverse' ;
81
80
82
81
interface NavigationUpdateCurrentEntryOptions {
83
82
state : unknown ;
@@ -99,19 +98,19 @@ interface NavigationReloadOptions extends NavigationOptions {
99
98
declare class NavigationCurrentEntryChangeEvent extends Event {
100
99
constructor ( type : string , eventInit ?: NavigationCurrentEntryChangeEventInit ) ;
101
100
102
- readonly navigationType : NavigationNavigationType | null ;
101
+ readonly navigationType : NavigationType | null ;
103
102
readonly from : NavigationHistoryEntry ;
104
103
}
105
104
106
105
interface NavigationCurrentEntryChangeEventInit extends EventInit {
107
- navigationType ?: NavigationNavigationType | null ;
106
+ navigationType ?: NavigationType | null ;
108
107
from : NavigationHistoryEntry ;
109
108
}
110
109
111
110
declare class NavigateEvent extends Event {
112
111
constructor ( type : string , eventInit ?: NavigateEventInit ) ;
113
112
114
- readonly navigationType : NavigationNavigationType ;
113
+ readonly navigationType : NavigationType ;
115
114
readonly canTransition : boolean ;
116
115
readonly userInitiated : boolean ;
117
116
readonly hashChange : boolean ;
@@ -125,7 +124,7 @@ declare class NavigateEvent extends Event {
125
124
}
126
125
127
126
interface NavigateEventInit extends EventInit {
128
- navigationType ?: NavigationNavigationType ;
127
+ navigationType ?: NavigationType ;
129
128
canTransition ?: boolean ;
130
129
userInitiated ?: boolean ;
131
130
hashChange ?: boolean ;
0 commit comments