Skip to content

Commit a80daf9

Browse files
committed
refactor: rename RouterHistory
1 parent 5a236f1 commit a80daf9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/router-component-store/src/lib/router-history-store/router-history.store.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,20 @@ import {
2323
RouterSequence,
2424
} from './router-sequence';
2525

26+
type RouterHistory = Readonly<Record<number, RouterNavigatedSequence>>;
2627
interface 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

0 commit comments

Comments
 (0)