Skip to content

Commit d1f477b

Browse files
lint
1 parent 68f4530 commit d1f477b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/react-router/src/fileRoute.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class LazyRoute<TRoute extends AnyRoute> {
230230
}
231231

232232
useRouteContext: UseRouteContextRoute<TRoute['id']> = (opts) => {
233-
return useRouteContext({ from: this.options.id, ...(opts as any) }) as any
233+
return useRouteContext({ from: this.options.id, ...(opts as any) })
234234
}
235235

236236
useSearch: UseSearchRoute<TRoute['id']> = (opts) => {

‎packages/react-router/src/route.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class RouteApi<
115115
}
116116

117117
useRouteContext: UseRouteContextRoute<TId> = (opts) => {
118-
return useRouteContext({ from: this.id as any, ...(opts as any) }) as any
118+
return useRouteContext({ from: this.id as any, ...(opts as any) })
119119
}
120120

121121
useSearch: UseSearchRoute<TId> = (opts) => {
@@ -270,7 +270,7 @@ export class Route<
270270
}
271271

272272
useRouteContext: UseRouteContextRoute<TId> = (opts?) => {
273-
return useRouteContext({ from: this.id, ...(opts as any) }) as any
273+
return useRouteContext({ from: this.id, ...(opts as any) })
274274
}
275275

276276
useSearch: UseSearchRoute<TId> = (opts) => {
@@ -542,7 +542,7 @@ export class RootRoute<
542542
}
543543

544544
useRouteContext: UseRouteContextRoute<RootRouteId> = (opts) => {
545-
return useRouteContext({ from: this.id, ...(opts as any) }) as any
545+
return useRouteContext({ from: this.id, ...(opts as any) })
546546
}
547547

548548
useSearch: UseSearchRoute<RootRouteId> = (opts) => {

0 commit comments

Comments
 (0)