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