Skip to content

Commit 9d608db

Browse files
authored
fix: type error in generated src/router.tsx (#51) (#52)
Partial fix for #51
1 parent a3e575f commit 9d608db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/react/add-on/start/assets/src/router.tsx.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createIsomorphicFn } from '@tanstack/react-start'
66
import { routerWithQueryClient } from '@tanstack/react-router-with-query'
77
import * as TanstackQuery from './integrations/tanstack-query/root-provider'
88
<% } %>
9-
9+
1010
// Import the generated route tree
1111
import { routeTree } from './routeTree.gen'
1212

@@ -61,6 +61,6 @@ export const createRouter = () => {
6161
// Register the router instance for type safety
6262
declare module '@tanstack/react-router' {
6363
interface Register {
64-
router: typeof router
64+
router: ReturnType<typeof createRouter>
6565
}
6666
}

0 commit comments

Comments
 (0)