diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 8b0200e687..64e9b689b8 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -687,7 +687,7 @@ export type MatchRouteFn< TDefaultStructuralSharingOption extends boolean, TRouterHistory extends RouterHistory, > = < - TFrom extends RoutePaths = '/', + TFrom extends RoutePaths | string = '/', TTo extends string | undefined = undefined, TResolved = ResolveRelativePath>, >( @@ -702,7 +702,7 @@ export type MatchRouteFn< TTo >, opts?: MatchRouteOptions, -) => false | RouteById['types']['allParams'] +) => false | RouteById>['types']['allParams'] export type UpdateFn< TRouteTree extends AnyRoute,