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

routeTree.gen.ts

430 lines13.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 IndexRouteImport } from './routes/index'
13import { Route as PathlessLayoutRouteImport } from './routes/_pathlessLayout'
14import { Route as DeferredRouteImport } from './routes/deferred'
15import { Route as PostsRouteRouteImport } from './routes/posts.route'
16import { Route as RedirectRouteImport } from './routes/redirect'
17import { Route as UsersRouteRouteImport } from './routes/users.route'
18import { Route as PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
19import { Route as ApiUsersRouteImport } from './routes/api/users'
20import { Route as PostsIndexRouteImport } from './routes/posts.index'
21import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
22import { Route as UsersIndexRouteImport } from './routes/users.index'
23import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
24import { Route as PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
25import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
26import { Route as ApiUsersIdRouteImport } from './routes/api/users.$id'
27import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
28​
29const IndexRoute = IndexRouteImport.update({
30 id: '/',
31 path: '/',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
35 id: '/_pathlessLayout',
36 getParentRoute: () => rootRouteImport,
37} as any)
38const DeferredRoute = DeferredRouteImport.update({
39 id: '/deferred',
40 path: '/deferred',
41 getParentRoute: () => rootRouteImport,
42} as any)
43const PostsRouteRoute = PostsRouteRouteImport.update({
44 id: '/posts',
45 path: '/posts',
46 getParentRoute: () => rootRouteImport,
47} as any)
48const RedirectRoute = RedirectRouteImport.update({
49 id: '/redirect',
50 path: '/redirect',
51 getParentRoute: () => rootRouteImport,
52} as any)
53const UsersRouteRoute = UsersRouteRouteImport.update({
54 id: '/users',
55 path: '/users',
56 getParentRoute: () => rootRouteImport,
57} as any)
58const PathlessLayoutNestedLayoutRoute =
59 PathlessLayoutNestedLayoutRouteImport.update({
60 id: '/_nested-layout',
61 getParentRoute: () => PathlessLayoutRoute,
62 } as any)
63const ApiUsersRoute = ApiUsersRouteImport.update({
64 id: '/api/users',
65 path: '/api/users',
66 getParentRoute: () => rootRouteImport,
67} as any)
68const PostsIndexRoute = PostsIndexRouteImport.update({
69 id: '/',
70 path: '/',
71 getParentRoute: () => PostsRouteRoute,
72} as any)
73const PostsPostIdRoute = PostsPostIdRouteImport.update({
74 id: '/$postId',
75 path: '/$postId',
76 getParentRoute: () => PostsRouteRoute,
77} as any)
78const UsersIndexRoute = UsersIndexRouteImport.update({
79 id: '/',
80 path: '/',
81 getParentRoute: () => UsersRouteRoute,
82} as any)
83const UsersUserIdRoute = UsersUserIdRouteImport.update({
84 id: '/$userId',
85 path: '/$userId',
86 getParentRoute: () => UsersRouteRoute,
87} as any)
88const PathlessLayoutNestedLayoutRouteARoute =
89 PathlessLayoutNestedLayoutRouteARouteImport.update({
90 id: '/route-a',
91 path: '/route-a',
92 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
93 } as any)
94const PathlessLayoutNestedLayoutRouteBRoute =
95 PathlessLayoutNestedLayoutRouteBRouteImport.update({
96 id: '/route-b',
97 path: '/route-b',
98 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
99 } as any)
100const ApiUsersIdRoute = ApiUsersIdRouteImport.update({
101 id: '/$id',
102 path: '/$id',
103 getParentRoute: () => ApiUsersRoute,
104} as any)
105const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
106 id: '/posts_/$postId/deep',
107 path: '/posts/$postId/deep',
108 getParentRoute: () => rootRouteImport,
109} as any)
110​
111export interface FileRoutesByFullPath {
112 '/': typeof IndexRoute
113 '/posts': typeof PostsRouteRouteWithChildren
114 '/users': typeof UsersRouteRouteWithChildren
115 '/deferred': typeof DeferredRoute
116 '/redirect': typeof RedirectRoute
117 '/api/users': typeof ApiUsersRouteWithChildren
118 '/posts/$postId': typeof PostsPostIdRoute
119 '/users/$userId': typeof UsersUserIdRoute
120 '/posts/': typeof PostsIndexRoute
121 '/users/': typeof UsersIndexRoute
122 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
123 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
124 '/api/users/$id': typeof ApiUsersIdRoute
125 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
127export interface FileRoutesByTo {
128 '/': typeof IndexRoute
129 '/deferred': typeof DeferredRoute
130 '/redirect': typeof RedirectRoute
131 '/api/users': typeof ApiUsersRouteWithChildren
132 '/posts/$postId': typeof PostsPostIdRoute
133 '/users/$userId': typeof UsersUserIdRoute
134 '/posts': typeof PostsIndexRoute
135 '/users': typeof UsersIndexRoute
136 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
137 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
138 '/api/users/$id': typeof ApiUsersIdRoute
139 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
141export interface FileRoutesById {
142 __root__: typeof rootRouteImport
143 '/': typeof IndexRoute
144 '/posts': typeof PostsRouteRouteWithChildren
145 '/users': typeof UsersRouteRouteWithChildren
146 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
147 '/deferred': typeof DeferredRoute
148 '/redirect': typeof RedirectRoute
149 '/_pathlessLayout/_nested-layout': typeof PathlessLayoutNestedLayoutRouteWithChildren
150 '/api/users': typeof ApiUsersRouteWithChildren
151 '/posts/$postId': typeof PostsPostIdRoute
152 '/users/$userId': typeof UsersUserIdRoute
153 '/posts/': typeof PostsIndexRoute
154 '/users/': typeof UsersIndexRoute
155 '/_pathlessLayout/_nested-layout/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
156 '/_pathlessLayout/_nested-layout/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
157 '/api/users/$id': typeof ApiUsersIdRoute
158 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
160export interface FileRouteTypes {
161 fileRoutesByFullPath: FileRoutesByFullPath
162 fullPaths:
163 | '/'
164 | '/posts'
165 | '/users'
166 | '/deferred'
167 | '/redirect'
168 | '/api/users'
169 | '/posts/$postId'
170 | '/users/$userId'
171 | '/posts/'
172 | '/users/'
173 | '/route-a'
174 | '/route-b'
175 | '/api/users/$id'
176 | '/posts/$postId/deep'
177 fileRoutesByTo: FileRoutesByTo
178 to:
179 | '/'
180 | '/deferred'
181 | '/redirect'
182 | '/api/users'
183 | '/posts/$postId'
184 | '/users/$userId'
185 | '/posts'
186 | '/users'
187 | '/route-a'
188 | '/route-b'
189 | '/api/users/$id'
190 | '/posts/$postId/deep'
191 id:
192 | '__root__'
193 | '/'
194 | '/posts'
195 | '/users'
196 | '/_pathlessLayout'
197 | '/deferred'
198 | '/redirect'
199 | '/_pathlessLayout/_nested-layout'
200 | '/api/users'
201 | '/posts/$postId'
202 | '/users/$userId'
203 | '/posts/'
204 | '/users/'
205 | '/_pathlessLayout/_nested-layout/route-a'
206 | '/_pathlessLayout/_nested-layout/route-b'
207 | '/api/users/$id'
208 | '/posts_/$postId/deep'
209 fileRoutesById: FileRoutesById
211export interface RootRouteChildren {
212 IndexRoute: typeof IndexRoute
213 PostsRouteRoute: typeof PostsRouteRouteWithChildren
214 UsersRouteRoute: typeof UsersRouteRouteWithChildren
215 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
216 DeferredRoute: typeof DeferredRoute
217 RedirectRoute: typeof RedirectRoute
218 ApiUsersRoute: typeof ApiUsersRouteWithChildren
219 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
221​
222declare module '@tanstack/solid-router' {
223 interface FileRoutesByPath {
224 '/': {
225 id: '/'
226 path: '/'
227 fullPath: '/'
228 preLoaderRoute: typeof IndexRouteImport
229 parentRoute: typeof rootRouteImport
230 }
231 '/_pathlessLayout': {
232 id: '/_pathlessLayout'
233 path: ''
234 fullPath: '/'
235 preLoaderRoute: typeof PathlessLayoutRouteImport
236 parentRoute: typeof rootRouteImport
237 }
238 '/deferred': {
239 id: '/deferred'
240 path: '/deferred'
241 fullPath: '/deferred'
242 preLoaderRoute: typeof DeferredRouteImport
243 parentRoute: typeof rootRouteImport
244 }
245 '/posts': {
246 id: '/posts'
247 path: '/posts'
248 fullPath: '/posts'
249 preLoaderRoute: typeof PostsRouteRouteImport
250 parentRoute: typeof rootRouteImport
251 }
252 '/redirect': {
253 id: '/redirect'
254 path: '/redirect'
255 fullPath: '/redirect'
256 preLoaderRoute: typeof RedirectRouteImport
257 parentRoute: typeof rootRouteImport
258 }
259 '/users': {
260 id: '/users'
261 path: '/users'
262 fullPath: '/users'
263 preLoaderRoute: typeof UsersRouteRouteImport
264 parentRoute: typeof rootRouteImport
265 }
266 '/_pathlessLayout/_nested-layout': {
267 id: '/_pathlessLayout/_nested-layout'
268 path: ''
269 fullPath: '/'
270 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteImport
271 parentRoute: typeof PathlessLayoutRoute
272 }
273 '/api/users': {
274 id: '/api/users'
275 path: '/api/users'
276 fullPath: '/api/users'
277 preLoaderRoute: typeof ApiUsersRouteImport
278 parentRoute: typeof rootRouteImport
279 }
280 '/posts/': {
281 id: '/posts/'
282 path: '/'
283 fullPath: '/posts/'
284 preLoaderRoute: typeof PostsIndexRouteImport
285 parentRoute: typeof PostsRouteRoute
286 }
287 '/posts/$postId': {
288 id: '/posts/$postId'
289 path: '/$postId'
290 fullPath: '/posts/$postId'
291 preLoaderRoute: typeof PostsPostIdRouteImport
292 parentRoute: typeof PostsRouteRoute
293 }
294 '/users/': {
295 id: '/users/'
296 path: '/'
297 fullPath: '/users/'
298 preLoaderRoute: typeof UsersIndexRouteImport
299 parentRoute: typeof UsersRouteRoute
300 }
301 '/users/$userId': {
302 id: '/users/$userId'
303 path: '/$userId'
304 fullPath: '/users/$userId'
305 preLoaderRoute: typeof UsersUserIdRouteImport
306 parentRoute: typeof UsersRouteRoute
307 }
308 '/_pathlessLayout/_nested-layout/route-a': {
309 id: '/_pathlessLayout/_nested-layout/route-a'
310 path: '/route-a'
311 fullPath: '/route-a'
312 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteARouteImport
313 parentRoute: typeof PathlessLayoutNestedLayoutRoute
314 }
315 '/_pathlessLayout/_nested-layout/route-b': {
316 id: '/_pathlessLayout/_nested-layout/route-b'
317 path: '/route-b'
318 fullPath: '/route-b'
319 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteBRouteImport
320 parentRoute: typeof PathlessLayoutNestedLayoutRoute
321 }
322 '/api/users/$id': {
323 id: '/api/users/$id'
324 path: '/$id'
325 fullPath: '/api/users/$id'
326 preLoaderRoute: typeof ApiUsersIdRouteImport
327 parentRoute: typeof ApiUsersRoute
328 }
329 '/posts_/$postId/deep': {
330 id: '/posts_/$postId/deep'
331 path: '/posts/$postId/deep'
332 fullPath: '/posts/$postId/deep'
333 preLoaderRoute: typeof PostsPostIdDeepRouteImport
334 parentRoute: typeof rootRouteImport
335 }
336 }
338​
339interface PostsRouteRouteChildren {
340 PostsPostIdRoute: typeof PostsPostIdRoute
341 PostsIndexRoute: typeof PostsIndexRoute
343​
344const PostsRouteRouteChildren: PostsRouteRouteChildren = {
345 PostsPostIdRoute: PostsPostIdRoute,
346 PostsIndexRoute: PostsIndexRoute,
348​
349const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
350 PostsRouteRouteChildren,
352​
353interface UsersRouteRouteChildren {
354 UsersUserIdRoute: typeof UsersUserIdRoute
355 UsersIndexRoute: typeof UsersIndexRoute
357​
358const UsersRouteRouteChildren: UsersRouteRouteChildren = {
359 UsersUserIdRoute: UsersUserIdRoute,
360 UsersIndexRoute: UsersIndexRoute,
362​
363const UsersRouteRouteWithChildren = UsersRouteRoute._addFileChildren(
364 UsersRouteRouteChildren,
366​
367interface PathlessLayoutNestedLayoutRouteChildren {
368 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
369 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
371​
372const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
373 {
374 PathlessLayoutNestedLayoutRouteARoute:
375 PathlessLayoutNestedLayoutRouteARoute,
376 PathlessLayoutNestedLayoutRouteBRoute:
377 PathlessLayoutNestedLayoutRouteBRoute,
378 }
379​
380const PathlessLayoutNestedLayoutRouteWithChildren =
381 PathlessLayoutNestedLayoutRoute._addFileChildren(
382 PathlessLayoutNestedLayoutRouteChildren,
383 )
384​
385interface PathlessLayoutRouteChildren {
386 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
388​
389const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
390 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
392​
393const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
394 PathlessLayoutRouteChildren,
396​
397interface ApiUsersRouteChildren {
398 ApiUsersIdRoute: typeof ApiUsersIdRoute
400​
401const ApiUsersRouteChildren: ApiUsersRouteChildren = {
402 ApiUsersIdRoute: ApiUsersIdRoute,
404​
405const ApiUsersRouteWithChildren = ApiUsersRoute._addFileChildren(
406 ApiUsersRouteChildren,
408​
409const rootRouteChildren: RootRouteChildren = {
410 IndexRoute: IndexRoute,
411 PostsRouteRoute: PostsRouteRouteWithChildren,
412 UsersRouteRoute: UsersRouteRouteWithChildren,
413 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
414 DeferredRoute: DeferredRoute,
415 RedirectRoute: RedirectRoute,
416 ApiUsersRoute: ApiUsersRouteWithChildren,
417 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
419export const routeTree = rootRouteImport
420 ._addFileChildren(rootRouteChildren)
421 ._addFileTypes<FileRouteTypes>()
422​
423import type { getRouter } from './router.tsx'
424import type { createStart } from '@tanstack/solid-start'
425declare module '@tanstack/solid-start' {
426 interface Register {
427 ssr: true
428 router: Awaited<ReturnType<typeof getRouter>>
429 }