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 {
2323 RouterSequence ,
2424} from './router-sequence' ;
2525
26+ type RouterHistory = Readonly < Record < number , RouterNavigatedSequence > > ;
2627interface RouterHistoryState {
2728 /**
2829 * The history of all router navigated sequences.
2930 *
3031 * The key is the navigation ID.
3132 */
32- readonly history : RouterNavigatedHistory ;
33+ readonly history : RouterHistory ;
3334 /**
3435 * The ID of the most recent router navigated sequence events.
3536 */
3637 readonly maxNavigatedId ?: number ;
3738}
3839
39- type RouterNavigatedHistory = Readonly < Record < number , RouterNavigatedSequence > > ;
40-
4140/**
4241 * Provide and initialize the `RouterHistoryStore`.
4342 *
@@ -187,12 +186,12 @@ export class RouterHistoryStore extends ComponentStore<RouterHistoryState> {
187186 * This takes `popstate` navigation events into account.
188187 *
189188 * @param navigationId The ID of the navigation to trace.
190- * @param history The navigation history to search.
189+ * @param history The history to search.
191190 * @returns The source router navigated sequence.
192191 */
193192 #findNavigatedSource(
194193 navigationId : number ,
195- history : RouterNavigatedHistory
194+ history : RouterHistory
196195 ) : RouterNavigatedSequence {
197196 let navigation = history [ navigationId ] ;
198197
You can’t perform that action at this time.
0 commit comments