Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

routeTree.gen.ts

131 lines4.2 KB

1/* eslint-disable */
2​
3// @ts-nocheck
4​
5// noinspection JSUnusedGlobalSymbols
6​
7// This file was automatically generated by TanStack Router.
8// You should NOT make any changes in this file as it will be overwritten.
9// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
10​
11import { Route as rootRouteImport } from './routes/__root'
12import { Route as IndexRouteImport } from './routes/index'
13import { Route as ApiTanchatRouteImport } from './routes/api.tanchat'
14import { Route as ExampleGuitarsIndexRouteImport } from './routes/example.guitars/index'
15import { Route as ExampleGuitarsGuitarIdRouteImport } from './routes/example.guitars/$guitarId'
16​
17const IndexRoute = IndexRouteImport.update({
18 id: '/',
19 path: '/',
20 getParentRoute: () => rootRouteImport,
21} as any)
22const ApiTanchatRoute = ApiTanchatRouteImport.update({
23 id: '/api/tanchat',
24 path: '/api/tanchat',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const ExampleGuitarsIndexRoute = ExampleGuitarsIndexRouteImport.update({
28 id: '/example/guitars/',
29 path: '/example/guitars/',
30 getParentRoute: () => rootRouteImport,
31} as any)
32const ExampleGuitarsGuitarIdRoute = ExampleGuitarsGuitarIdRouteImport.update({
33 id: '/example/guitars/$guitarId',
34 path: '/example/guitars/$guitarId',
35 getParentRoute: () => rootRouteImport,
36} as any)
37​
38export interface FileRoutesByFullPath {
39 '/': typeof IndexRoute
40 '/api/tanchat': typeof ApiTanchatRoute
41 '/example/guitars/$guitarId': typeof ExampleGuitarsGuitarIdRoute
42 '/example/guitars': typeof ExampleGuitarsIndexRoute
44export interface FileRoutesByTo {
45 '/': typeof IndexRoute
46 '/api/tanchat': typeof ApiTanchatRoute
47 '/example/guitars/$guitarId': typeof ExampleGuitarsGuitarIdRoute
48 '/example/guitars': typeof ExampleGuitarsIndexRoute
50export interface FileRoutesById {
51 __root__: typeof rootRouteImport
52 '/': typeof IndexRoute
53 '/api/tanchat': typeof ApiTanchatRoute
54 '/example/guitars/$guitarId': typeof ExampleGuitarsGuitarIdRoute
55 '/example/guitars/': typeof ExampleGuitarsIndexRoute
57export interface FileRouteTypes {
58 fileRoutesByFullPath: FileRoutesByFullPath
59 fullPaths:
60 | '/'
61 | '/api/tanchat'
62 | '/example/guitars/$guitarId'
63 | '/example/guitars'
64 fileRoutesByTo: FileRoutesByTo
65 to: '/' | '/api/tanchat' | '/example/guitars/$guitarId' | '/example/guitars'
66 id:
67 | '__root__'
68 | '/'
69 | '/api/tanchat'
70 | '/example/guitars/$guitarId'
71 | '/example/guitars/'
72 fileRoutesById: FileRoutesById
74export interface RootRouteChildren {
75 IndexRoute: typeof IndexRoute
76 ApiTanchatRoute: typeof ApiTanchatRoute
77 ExampleGuitarsGuitarIdRoute: typeof ExampleGuitarsGuitarIdRoute
78 ExampleGuitarsIndexRoute: typeof ExampleGuitarsIndexRoute
80​
81declare module '@tanstack/react-router' {
82 interface FileRoutesByPath {
83 '/': {
84 id: '/'
85 path: '/'
86 fullPath: '/'
87 preLoaderRoute: typeof IndexRouteImport
88 parentRoute: typeof rootRouteImport
89 }
90 '/api/tanchat': {
91 id: '/api/tanchat'
92 path: '/api/tanchat'
93 fullPath: '/api/tanchat'
94 preLoaderRoute: typeof ApiTanchatRouteImport
95 parentRoute: typeof rootRouteImport
96 }
97 '/example/guitars/': {
98 id: '/example/guitars/'
99 path: '/example/guitars'
100 fullPath: '/example/guitars'
101 preLoaderRoute: typeof ExampleGuitarsIndexRouteImport
102 parentRoute: typeof rootRouteImport
103 }
104 '/example/guitars/$guitarId': {
105 id: '/example/guitars/$guitarId'
106 path: '/example/guitars/$guitarId'
107 fullPath: '/example/guitars/$guitarId'
108 preLoaderRoute: typeof ExampleGuitarsGuitarIdRouteImport
109 parentRoute: typeof rootRouteImport
110 }
111 }
113​
114const rootRouteChildren: RootRouteChildren = {
115 IndexRoute: IndexRoute,
116 ApiTanchatRoute: ApiTanchatRoute,
117 ExampleGuitarsGuitarIdRoute: ExampleGuitarsGuitarIdRoute,
118 ExampleGuitarsIndexRoute: ExampleGuitarsIndexRoute,
120export const routeTree = rootRouteImport
121 ._addFileChildren(rootRouteChildren)
122 ._addFileTypes<FileRouteTypes>()
123​
124import type { getRouter } from './router.tsx'
125import type { createStart } from '@tanstack/react-start'
126declare module '@tanstack/react-start' {
127 interface Register {
128 ssr: true
129 router: Awaited<ReturnType<typeof getRouter>>
130 }