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