Skip to content

Commit e285bbe

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

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

packages/router-core/src/route.ts

+16-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,13 @@ export interface UpdatableRouteOptions<
10321032
>,
10331033
TLoaderDeps
10341034
>,
1035-
{ location }: { location: ParsedLocation<{}> },
1035+
{
1036+
location,
1037+
}: {
1038+
location: ParsedLocation<
1039+
ParsedLocation<ResolveFullSearchSchema<TParentRoute, TSearchValidator>>
1040+
>
1041+
},
10361042
) => void
10371043
onStay?: (
10381044
match: RouteMatch<
@@ -1049,7 +1055,13 @@ export interface UpdatableRouteOptions<
10491055
>,
10501056
TLoaderDeps
10511057
>,
1052-
{ location }: { location: ParsedLocation<{}> },
1058+
{
1059+
location,
1060+
}: {
1061+
location: ParsedLocation<
1062+
ParsedLocation<ResolveFullSearchSchema<TParentRoute, TSearchValidator>>
1063+
>
1064+
},
10531065
) => void
10541066
onLeave?: (
10551067
match: RouteMatch<
@@ -1066,7 +1078,7 @@ export interface UpdatableRouteOptions<
10661078
>,
10671079
TLoaderDeps
10681080
>,
1069-
{ location }: { location: ParsedLocation<{}> },
1081+
{ location }: { location: ParsedLocation<FullSearchSchema<TRouteTree>>},
10701082
) => void
10711083
headers?: (ctx: {
10721084
loaderData: ResolveLoaderData<TLoaderFn>

0 commit comments

Comments
 (0)