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

routeTree.gen.ts

347 lines11.5 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 homeRouteImport } from './routes/home'
13import { Route as layoutFirstLayoutRouteImport } from './routes/layout/first-layout'
14import { Route as postsPostsRouteImport } from './routes/posts/posts'
15import { Route as pipeRouteImport } from './routes/pipe'
16import { Route as layoutSecondLayoutRouteImport } from './routes/layout/second-layout'
17import { Route as ClassicHelloRouteRouteImport } from './routes/file-based-subtree/hello/route'
18import { Route as postsPostsHomeRouteImport } from './routes/posts/posts-home'
19import { Route as postsPostsDetailRouteImport } from './routes/posts/posts-detail'
20import { Route as ClassicHelloIndexRouteImport } from './routes/file-based-subtree/hello/index'
21import { Route as ClassicHelloUniverseRouteImport } from './routes/file-based-subtree/hello/universe'
22import { Route as ClassicHelloWorldRouteImport } from './routes/file-based-subtree/hello/world'
23import { Route as aRouteImport } from './routes/a'
24import { Route as bRouteImport } from './routes/b'
25​
26const homeRoute = homeRouteImport.update({
27 id: '/',
28 path: '/',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const layoutFirstLayoutRoute = layoutFirstLayoutRouteImport.update({
32 id: '/_first',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const postsPostsRoute = postsPostsRouteImport.update({
36 id: '/posts',
37 path: '/posts',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const pipeRoute = pipeRouteImport.update({
41 id: '/special|pipe',
42 path: '/special|pipe',
43 getParentRoute: () => rootRouteImport,
44} as any)
45const layoutSecondLayoutRoute = layoutSecondLayoutRouteImport.update({
46 id: '/_second-layout',
47 getParentRoute: () => layoutFirstLayoutRoute,
48} as any)
49const ClassicHelloRouteRoute = ClassicHelloRouteRouteImport.update({
50 id: '/classic/hello',
51 path: '/classic/hello',
52 getParentRoute: () => rootRouteImport,
53} as any)
54const postsPostsHomeRoute = postsPostsHomeRouteImport.update({
55 id: '/',
56 path: '/',
57 getParentRoute: () => postsPostsRoute,
58} as any)
59const postsPostsDetailRoute = postsPostsDetailRouteImport.update({
60 id: '/$postId',
61 path: '/$postId',
62 getParentRoute: () => postsPostsRoute,
63} as any)
64const ClassicHelloIndexRoute = ClassicHelloIndexRouteImport.update({
65 id: '/',
66 path: '/',
67 getParentRoute: () => ClassicHelloRouteRoute,
68} as any)
69const ClassicHelloUniverseRoute = ClassicHelloUniverseRouteImport.update({
70 id: '/universe',
71 path: '/universe',
72 getParentRoute: () => ClassicHelloRouteRoute,
73} as any)
74const ClassicHelloWorldRoute = ClassicHelloWorldRouteImport.update({
75 id: '/world',
76 path: '/world',
77 getParentRoute: () => ClassicHelloRouteRoute,
78} as any)
79const aRoute = aRouteImport.update({
80 id: '/route-without-file/layout-a',
81 path: '/route-without-file/layout-a',
82 getParentRoute: () => layoutSecondLayoutRoute,
83} as any)
84const bRoute = bRouteImport.update({
85 id: '/route-without-file/layout-b',
86 path: '/route-without-file/layout-b',
87 getParentRoute: () => layoutSecondLayoutRoute,
88} as any)
89​
90export interface FileRoutesByFullPath {
91 '/': typeof homeRoute
92 '/posts': typeof postsPostsRouteWithChildren
93 '/special|pipe': typeof pipeRoute
94 '/classic/hello': typeof ClassicHelloRouteRouteWithChildren
95 '/posts/': typeof postsPostsHomeRoute
96 '/posts/$postId': typeof postsPostsDetailRoute
97 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
98 '/classic/hello/world': typeof ClassicHelloWorldRoute
99 '/classic/hello/': typeof ClassicHelloIndexRoute
100 '/route-without-file/layout-a': typeof aRoute
101 '/route-without-file/layout-b': typeof bRoute
103export interface FileRoutesByTo {
104 '/': typeof homeRoute
105 '/special|pipe': typeof pipeRoute
106 '/posts': typeof postsPostsHomeRoute
107 '/posts/$postId': typeof postsPostsDetailRoute
108 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
109 '/classic/hello/world': typeof ClassicHelloWorldRoute
110 '/classic/hello': typeof ClassicHelloIndexRoute
111 '/route-without-file/layout-a': typeof aRoute
112 '/route-without-file/layout-b': typeof bRoute
114export interface FileRoutesById {
115 __root__: typeof rootRouteImport
116 '/': typeof homeRoute
117 '/_first': typeof layoutFirstLayoutRouteWithChildren
118 '/posts': typeof postsPostsRouteWithChildren
119 '/special|pipe': typeof pipeRoute
120 '/classic/hello': typeof ClassicHelloRouteRouteWithChildren
121 '/posts/': typeof postsPostsHomeRoute
122 '/_first/_second-layout': typeof layoutSecondLayoutRouteWithChildren
123 '/posts/$postId': typeof postsPostsDetailRoute
124 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
125 '/classic/hello/world': typeof ClassicHelloWorldRoute
126 '/classic/hello/': typeof ClassicHelloIndexRoute
127 '/_first/_second-layout/route-without-file/layout-a': typeof aRoute
128 '/_first/_second-layout/route-without-file/layout-b': typeof bRoute
130export interface FileRouteTypes {
131 fileRoutesByFullPath: FileRoutesByFullPath
132 fullPaths:
133 | '/'
134 | '/posts'
135 | '/special|pipe'
136 | '/classic/hello'
137 | '/posts/'
138 | '/posts/$postId'
139 | '/classic/hello/universe'
140 | '/classic/hello/world'
141 | '/classic/hello/'
142 | '/route-without-file/layout-a'
143 | '/route-without-file/layout-b'
144 fileRoutesByTo: FileRoutesByTo
145 to:
146 | '/'
147 | '/special|pipe'
148 | '/posts'
149 | '/posts/$postId'
150 | '/classic/hello/universe'
151 | '/classic/hello/world'
152 | '/classic/hello'
153 | '/route-without-file/layout-a'
154 | '/route-without-file/layout-b'
155 id:
156 | '__root__'
157 | '/'
158 | '/_first'
159 | '/posts'
160 | '/special|pipe'
161 | '/classic/hello'
162 | '/posts/'
163 | '/_first/_second-layout'
164 | '/posts/$postId'
165 | '/classic/hello/universe'
166 | '/classic/hello/world'
167 | '/classic/hello/'
168 | '/_first/_second-layout/route-without-file/layout-a'
169 | '/_first/_second-layout/route-without-file/layout-b'
170 fileRoutesById: FileRoutesById
172export interface RootRouteChildren {
173 homeRoute: typeof homeRoute
174 layoutFirstLayoutRoute: typeof layoutFirstLayoutRouteWithChildren
175 postsPostsRoute: typeof postsPostsRouteWithChildren
176 pipeRoute: typeof pipeRoute
177 ClassicHelloRouteRoute: typeof ClassicHelloRouteRouteWithChildren
179​
180declare module '@tanstack/solid-router' {
181 interface FileRoutesByPath {
182 '/': {
183 id: '/'
184 path: '/'
185 fullPath: '/'
186 preLoaderRoute: typeof homeRouteImport
187 parentRoute: typeof rootRouteImport
188 }
189 '/_first': {
190 id: '/_first'
191 path: ''
192 fullPath: '/'
193 preLoaderRoute: typeof layoutFirstLayoutRouteImport
194 parentRoute: typeof rootRouteImport
195 }
196 '/posts': {
197 id: '/posts'
198 path: '/posts'
199 fullPath: '/posts'
200 preLoaderRoute: typeof postsPostsRouteImport
201 parentRoute: typeof rootRouteImport
202 }
203 '/special|pipe': {
204 id: '/special|pipe'
205 path: '/special|pipe'
206 fullPath: '/special|pipe'
207 preLoaderRoute: typeof pipeRouteImport
208 parentRoute: typeof rootRouteImport
209 }
210 '/_first/_second-layout': {
211 id: '/_first/_second-layout'
212 path: ''
213 fullPath: '/'
214 preLoaderRoute: typeof layoutSecondLayoutRouteImport
215 parentRoute: typeof layoutFirstLayoutRoute
216 }
217 '/classic/hello': {
218 id: '/classic/hello'
219 path: '/classic/hello'
220 fullPath: '/classic/hello'
221 preLoaderRoute: typeof ClassicHelloRouteRouteImport
222 parentRoute: typeof rootRouteImport
223 }
224 '/posts/': {
225 id: '/posts/'
226 path: '/'
227 fullPath: '/posts/'
228 preLoaderRoute: typeof postsPostsHomeRouteImport
229 parentRoute: typeof postsPostsRoute
230 }
231 '/posts/$postId': {
232 id: '/posts/$postId'
233 path: '/$postId'
234 fullPath: '/posts/$postId'
235 preLoaderRoute: typeof postsPostsDetailRouteImport
236 parentRoute: typeof postsPostsRoute
237 }
238 '/classic/hello/': {
239 id: '/classic/hello/'
240 path: '/'
241 fullPath: '/classic/hello/'
242 preLoaderRoute: typeof ClassicHelloIndexRouteImport
243 parentRoute: typeof ClassicHelloRouteRoute
244 }
245 '/classic/hello/universe': {
246 id: '/classic/hello/universe'
247 path: '/universe'
248 fullPath: '/classic/hello/universe'
249 preLoaderRoute: typeof ClassicHelloUniverseRouteImport
250 parentRoute: typeof ClassicHelloRouteRoute
251 }
252 '/classic/hello/world': {
253 id: '/classic/hello/world'
254 path: '/world'
255 fullPath: '/classic/hello/world'
256 preLoaderRoute: typeof ClassicHelloWorldRouteImport
257 parentRoute: typeof ClassicHelloRouteRoute
258 }
259 '/_first/_second-layout/route-without-file/layout-a': {
260 id: '/_first/_second-layout/route-without-file/layout-a'
261 path: '/route-without-file/layout-a'
262 fullPath: '/route-without-file/layout-a'
263 preLoaderRoute: typeof aRouteImport
264 parentRoute: typeof layoutSecondLayoutRoute
265 }
266 '/_first/_second-layout/route-without-file/layout-b': {
267 id: '/_first/_second-layout/route-without-file/layout-b'
268 path: '/route-without-file/layout-b'
269 fullPath: '/route-without-file/layout-b'
270 preLoaderRoute: typeof bRouteImport
271 parentRoute: typeof layoutSecondLayoutRoute
272 }
273 }
275​
276interface layoutSecondLayoutRouteChildren {
277 aRoute: typeof aRoute
278 bRoute: typeof bRoute
280​
281const layoutSecondLayoutRouteChildren: layoutSecondLayoutRouteChildren = {
282 aRoute: aRoute,
283 bRoute: bRoute,
285​
286const layoutSecondLayoutRouteWithChildren =
287 layoutSecondLayoutRoute._addFileChildren(layoutSecondLayoutRouteChildren)
288​
289interface layoutFirstLayoutRouteChildren {
290 layoutSecondLayoutRoute: typeof layoutSecondLayoutRouteWithChildren
292​
293const layoutFirstLayoutRouteChildren: layoutFirstLayoutRouteChildren = {
294 layoutSecondLayoutRoute: layoutSecondLayoutRouteWithChildren,
296​
297const layoutFirstLayoutRouteWithChildren =
298 layoutFirstLayoutRoute._addFileChildren(layoutFirstLayoutRouteChildren)
299​
300interface postsPostsRouteChildren {
301 postsPostsHomeRoute: typeof postsPostsHomeRoute
302 postsPostsDetailRoute: typeof postsPostsDetailRoute
304​
305const postsPostsRouteChildren: postsPostsRouteChildren = {
306 postsPostsHomeRoute: postsPostsHomeRoute,
307 postsPostsDetailRoute: postsPostsDetailRoute,
309​
310const postsPostsRouteWithChildren = postsPostsRoute._addFileChildren(
311 postsPostsRouteChildren,
313​
314interface ClassicHelloRouteRouteChildren {
315 ClassicHelloUniverseRoute: typeof ClassicHelloUniverseRoute
316 ClassicHelloWorldRoute: typeof ClassicHelloWorldRoute
317 ClassicHelloIndexRoute: typeof ClassicHelloIndexRoute
319​
320const ClassicHelloRouteRouteChildren: ClassicHelloRouteRouteChildren = {
321 ClassicHelloUniverseRoute: ClassicHelloUniverseRoute,
322 ClassicHelloWorldRoute: ClassicHelloWorldRoute,
323 ClassicHelloIndexRoute: ClassicHelloIndexRoute,
325​
326const ClassicHelloRouteRouteWithChildren =
327 ClassicHelloRouteRoute._addFileChildren(ClassicHelloRouteRouteChildren)
328​
329const rootRouteChildren: RootRouteChildren = {
330 homeRoute: homeRoute,
331 layoutFirstLayoutRoute: layoutFirstLayoutRouteWithChildren,
332 postsPostsRoute: postsPostsRouteWithChildren,
333 pipeRoute: pipeRoute,
334 ClassicHelloRouteRoute: ClassicHelloRouteRouteWithChildren,
336export const routeTree = rootRouteImport
337 ._addFileChildren(rootRouteChildren)
338 ._addFileTypes<FileRouteTypes>()
339​
340import type { getRouter } from './router.tsx'
341import type { createStart } from '@tanstack/solid-start'
342declare module '@tanstack/solid-start' {
343 interface Register {
344 ssr: true
345 router: Awaited<ReturnType<typeof getRouter>>
346 }