The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { createRouter } from "@tanstack/react-router"; |
| 2 | import { routeTree } from "./routeTree.gen"; |
| 3 | |
| 4 | export function getRouter() { |
| 5 | return createRouter({ |
| 6 | routeTree, |
| 7 | scrollRestoration: true, |
| 8 | }); |
| 9 | } |
| 10 | |
| 11 | declare module "@tanstack/react-router" { |
| 12 | interface Register { |
| 13 | router: ReturnType<typeof getRouter>; |
| 14 | } |
| 15 | } |