Skip to content

Commit 879b53b

Browse files
typing search
wrong but as a starting point
1 parent a5c9ca7 commit 879b53b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

packages/router-core/src/route.ts

+14-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
RouteMatch,
99
} from './Matches'
1010
import type { RootRouteId } from './root'
11-
import type { ParseRoute, RouteById, RoutePaths } from './routeInfo'
11+
import type { FullSearchSchema, ParseRoute, RouteById, RoutePaths } from './routeInfo'
1212
import type { AnyRouter, RegisteredRouter } from './router'
1313
import type { BuildLocationFn, NavigateFn } from './RouterProvider'
1414
import type {
@@ -1032,7 +1032,12 @@ export interface UpdatableRouteOptions<
10321032
>,
10331033
TLoaderDeps
10341034
>,
1035-
{ location }: { location: ParsedLocation<{}> },
1035+
{
1036+
location,
1037+
}: {
1038+
location:
1039+
ParsedLocation<ResolveFullSearchSchema<TParentRoute, TSearchValidator>>
1040+
},
10361041
) => void
10371042
onStay?: (
10381043
match: RouteMatch<
@@ -1049,7 +1054,12 @@ export interface UpdatableRouteOptions<
10491054
>,
10501055
TLoaderDeps
10511056
>,
1052-
{ location }: { location: ParsedLocation<{}> },
1057+
{
1058+
location,
1059+
}: {
1060+
location:
1061+
ParsedLocation<ResolveFullSearchSchema<TParentRoute, TSearchValidator>>
1062+
},
10531063
) => void
10541064
onLeave?: (
10551065
match: RouteMatch<
@@ -1066,7 +1076,7 @@ export interface UpdatableRouteOptions<
10661076
>,
10671077
TLoaderDeps
10681078
>,
1069-
{ location }: { location: ParsedLocation<{}> },
1079+
{ location }: { location: ParsedLocation<FullSearchSchema<TRouteTree>>},
10701080
) => void
10711081
headers?: (ctx: {
10721082
loaderData: ResolveLoaderData<TLoaderFn>

0 commit comments

Comments
 (0)