Open History to see the last commit
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 OtherRouteImport } from './routes/other'
14import { Route as ParentRouteImport } from './routes/parent'
15import { Route as RedirectRouteImport } from './routes/redirect'
16import { Route as OtherNestedRouteImport } from './routes/other/nested'
17import { Route as ParentChildRouteImport } from './routes/parent/child'
18import { Route as ParentChildGrandchildRouteImport } from './routes/parent/child/grandchild'
19β
20const IndexRoute = IndexRouteImport.update({
21 id: '/',
22 path: '/',
23 getParentRoute: () => rootRouteImport,
24} as any)
25const OtherRoute = OtherRouteImport.update({
26 id: '/other',
27 path: '/other',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const ParentRoute = ParentRouteImport.update({
31 id: '/parent',
32 path: '/parent',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const RedirectRoute = RedirectRouteImport.update({
36 id: '/redirect',
37 path: '/redirect',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const OtherNestedRoute = OtherNestedRouteImport.update({
41 id: '/nested',
42 path: '/nested',
43 getParentRoute: () => OtherRoute,
44} as any)
45const ParentChildRoute = ParentChildRouteImport.update({
46 id: '/child',
47 path: '/child',
48 getParentRoute: () => ParentRoute,
49} as any)
50const ParentChildGrandchildRoute = ParentChildGrandchildRouteImport.update({
51 id: '/grandchild',
52 path: '/grandchild',
53 getParentRoute: () => ParentChildRoute,
54} as any)
55β
56export interface FileRoutesByFullPath {
57 '/': typeof IndexRoute
58 '/other': typeof OtherRouteWithChildren
59 '/parent': typeof ParentRouteWithChildren
60 '/redirect': typeof RedirectRoute
61 '/other/nested': typeof OtherNestedRoute
62 '/parent/child': typeof ParentChildRouteWithChildren
63 '/parent/child/grandchild': typeof ParentChildGrandchildRoute
64}
65export interface FileRoutesByTo {
66 '/': typeof IndexRoute
67 '/other': typeof OtherRouteWithChildren
68 '/parent': typeof ParentRouteWithChildren
69 '/redirect': typeof RedirectRoute
70 '/other/nested': typeof OtherNestedRoute
71 '/parent/child': typeof ParentChildRouteWithChildren
72 '/parent/child/grandchild': typeof ParentChildGrandchildRoute
73}
74export interface FileRoutesById {
75 __root__: typeof rootRouteImport
76 '/': typeof IndexRoute
77 '/other': typeof OtherRouteWithChildren
78 '/parent': typeof ParentRouteWithChildren
79 '/redirect': typeof RedirectRoute
80 '/other/nested': typeof OtherNestedRoute
81 '/parent/child': typeof ParentChildRouteWithChildren
82 '/parent/child/grandchild': typeof ParentChildGrandchildRoute
83}
84export interface FileRouteTypes {
85 fileRoutesByFullPath: FileRoutesByFullPath
86 fullPaths:
87 | '/'
88 | '/other'
89 | '/parent'
90 | '/redirect'
91 | '/other/nested'
92 | '/parent/child'
93 | '/parent/child/grandchild'
94 fileRoutesByTo: FileRoutesByTo
95 to:
96 | '/'
97 | '/other'
98 | '/parent'
99 | '/redirect'
100 | '/other/nested'
101 | '/parent/child'
102 | '/parent/child/grandchild'
103 id:
104 | '__root__'
105 | '/'
106 | '/other'
107 | '/parent'
108 | '/redirect'
109 | '/other/nested'
110 | '/parent/child'
111 | '/parent/child/grandchild'
112 fileRoutesById: FileRoutesById
113}
114export interface RootRouteChildren {
115 IndexRoute: typeof IndexRoute
116 OtherRoute: typeof OtherRouteWithChildren
117 ParentRoute: typeof ParentRouteWithChildren
118 RedirectRoute: typeof RedirectRoute
119}
120β
121declare module '@tanstack/react-router' {
122 interface FileRoutesByPath {
123 '/': {
124 id: '/'
125 path: '/'
126 fullPath: '/'
127 preLoaderRoute: typeof IndexRouteImport
128 parentRoute: typeof rootRouteImport
129 }
130 '/other': {
131 id: '/other'
132 path: '/other'
133 fullPath: '/other'
134 preLoaderRoute: typeof OtherRouteImport
135 parentRoute: typeof rootRouteImport
136 }
137 '/parent': {
138 id: '/parent'
139 path: '/parent'
140 fullPath: '/parent'
141 preLoaderRoute: typeof ParentRouteImport
142 parentRoute: typeof rootRouteImport
143 }
144 '/redirect': {
145 id: '/redirect'
146 path: '/redirect'
147 fullPath: '/redirect'
148 preLoaderRoute: typeof RedirectRouteImport
149 parentRoute: typeof rootRouteImport
150 }
151 '/other/nested': {
152 id: '/other/nested'
153 path: '/nested'
154 fullPath: '/other/nested'
155 preLoaderRoute: typeof OtherNestedRouteImport
156 parentRoute: typeof OtherRoute
157 }
158 '/parent/child': {
159 id: '/parent/child'
160 path: '/child'
161 fullPath: '/parent/child'
162 preLoaderRoute: typeof ParentChildRouteImport
163 parentRoute: typeof ParentRoute
164 }
165 '/parent/child/grandchild': {
166 id: '/parent/child/grandchild'
167 path: '/grandchild'
168 fullPath: '/parent/child/grandchild'
169 preLoaderRoute: typeof ParentChildGrandchildRouteImport
170 parentRoute: typeof ParentChildRoute
171 }
172 }
173}
174β
175interface OtherRouteChildren {
176 OtherNestedRoute: typeof OtherNestedRoute
177}
178β
179const OtherRouteChildren: OtherRouteChildren = {
180 OtherNestedRoute: OtherNestedRoute,
181}
182β
183const OtherRouteWithChildren = OtherRoute._addFileChildren(OtherRouteChildren)
184β
185interface ParentChildRouteChildren {
186 ParentChildGrandchildRoute: typeof ParentChildGrandchildRoute
187}
188β
189const ParentChildRouteChildren: ParentChildRouteChildren = {
190 ParentChildGrandchildRoute: ParentChildGrandchildRoute,
191}
192β
193const ParentChildRouteWithChildren = ParentChildRoute._addFileChildren(
194 ParentChildRouteChildren,
195)
196β
197interface ParentRouteChildren {
198 ParentChildRoute: typeof ParentChildRouteWithChildren
199}
200β
201const ParentRouteChildren: ParentRouteChildren = {
202 ParentChildRoute: ParentChildRouteWithChildren,
203}
204β
205const ParentRouteWithChildren =
206 ParentRoute._addFileChildren(ParentRouteChildren)
207β
208const rootRouteChildren: RootRouteChildren = {
209 IndexRoute: IndexRoute,
210 OtherRoute: OtherRouteWithChildren,
211 ParentRoute: ParentRouteWithChildren,
212 RedirectRoute: RedirectRoute,
213}
214export const routeTree = rootRouteImport
215 ._addFileChildren(rootRouteChildren)
216 ._addFileTypes<FileRouteTypes>()
217β
218import type { getRouter } from './router.tsx'
219import type { createStart } from '@tanstack/react-start'
220declare module '@tanstack/react-start' {
221 interface Register {
222 ssr: true
223 router: Awaited<ReturnType<typeof getRouter>>
224 }
225}