@devries-cameron20 / t3code Mirror · read-only
Fork 0

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, 03:37 UTC

main
ts 20 lines 426 Bytes
Raw
1 import { createRouter, RouterHistory } from "@tanstack/react-router";
2
3 import { routeTree } from "./routeTree.gen";
4
5 export function getRouter(history: RouterHistory) {
6 return createRouter({
7 routeTree,
8 history,
9 context: {},
10 defaultPreload: "intent",
11 });
12 }
13
14 export type AppRouter = ReturnType<typeof getRouter>;
15
16 declare module "@tanstack/react-router" {
17 interface Register {
18 router: AppRouter;
19 }
20 }