File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/router-component-store/src/lib/router-history-store Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,20 @@ import {
23
23
RouterSequence ,
24
24
} from './router-sequence' ;
25
25
26
+ type RouterHistory = Readonly < Record < number , RouterNavigatedSequence > > ;
26
27
interface RouterHistoryState {
27
28
/**
28
29
* The history of all router navigated sequences.
29
30
*
30
31
* The key is the navigation ID.
31
32
*/
32
- readonly history : RouterNavigatedHistory ;
33
+ readonly history : RouterHistory ;
33
34
/**
34
35
* The ID of the most recent router navigated sequence events.
35
36
*/
36
37
readonly maxNavigatedId ?: number ;
37
38
}
38
39
39
- type RouterNavigatedHistory = Readonly < Record < number , RouterNavigatedSequence > > ;
40
-
41
40
/**
42
41
* Provide and initialize the `RouterHistoryStore`.
43
42
*
@@ -187,12 +186,12 @@ export class RouterHistoryStore extends ComponentStore<RouterHistoryState> {
187
186
* This takes `popstate` navigation events into account.
188
187
*
189
188
* @param navigationId The ID of the navigation to trace.
190
- * @param history The navigation history to search.
189
+ * @param history The history to search.
191
190
* @returns The source router navigated sequence.
192
191
*/
193
192
#findNavigatedSource(
194
193
navigationId : number ,
195
- history : RouterNavigatedHistory
194
+ history : RouterHistory
196
195
) : RouterNavigatedSequence {
197
196
let navigation = history [ navigationId ] ;
198
197
You can’t perform that action at this time.
0 commit comments