File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type { NavigateOptions , ToOptions } from './link'
2
2
import type { ParsedLocation } from './location'
3
3
import type { RoutePaths } from './routeInfo'
4
- import type {
5
- AnyRouter ,
6
- RegisteredRouter ,
7
- ViewTransitionOptions ,
8
- } from './router'
4
+ import type { RegisteredRouter , ViewTransitionOptions } from './router'
9
5
10
6
export interface MatchLocation {
11
7
to ?: string | number | null
@@ -37,7 +33,7 @@ export type NavigateFn = <
37
33
) => Promise < void > | void
38
34
39
35
export type BuildLocationFn = <
40
- TRouter extends AnyRouter ,
36
+ TRouter extends RegisteredRouter ,
41
37
TTo extends string | undefined ,
42
38
TFrom extends RoutePaths < TRouter [ 'routeTree' ] > | string = string ,
43
39
TMaskFrom extends RoutePaths < TRouter [ 'routeTree' ] > | string = TFrom ,
You can’t perform that action at this time.
0 commit comments