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

routeTree.gen.ts

330 lines8.4 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​
11// Import Routes
12​
13import { Route as rootRoute } from './routes/__root'
14import { Route as PostsImport } from './routes/posts'
15import { Route as AnchorImport } from './routes/anchor'
16import { Route as LayoutImport } from './routes/_layout'
17import { Route as IndexImport } from './routes/index'
18import { Route as PostsIndexImport } from './routes/posts.index'
19import { Route as PostsPostIdImport } from './routes/posts.$postId'
20import { Route as LayoutLayout2Import } from './routes/_layout/_layout-2'
21import { Route as LayoutLayout2LayoutBImport } from './routes/_layout/_layout-2/layout-b'
22import { Route as LayoutLayout2LayoutAImport } from './routes/_layout/_layout-2/layout-a'
23​
24// Create/Update Routes
25​
26const PostsRoute = PostsImport.update({
27 id: '/posts',
28 path: '/posts',
29 getParentRoute: () => rootRoute,
30} as any)
31​
32const AnchorRoute = AnchorImport.update({
33 id: '/anchor',
34 path: '/anchor',
35 getParentRoute: () => rootRoute,
36} as any)
37​
38const LayoutRoute = LayoutImport.update({
39 id: '/_layout',
40 getParentRoute: () => rootRoute,
41} as any)
42​
43const IndexRoute = IndexImport.update({
44 id: '/',
45 path: '/',
46 getParentRoute: () => rootRoute,
47} as any)
48​
49const PostsIndexRoute = PostsIndexImport.update({
50 id: '/',
51 path: '/',
52 getParentRoute: () => PostsRoute,
53} as any)
54​
55const PostsPostIdRoute = PostsPostIdImport.update({
56 id: '/$postId',
57 path: '/$postId',
58 getParentRoute: () => PostsRoute,
59} as any)
60​
61const LayoutLayout2Route = LayoutLayout2Import.update({
62 id: '/_layout-2',
63 getParentRoute: () => LayoutRoute,
64} as any)
65​
66const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBImport.update({
67 id: '/layout-b',
68 path: '/layout-b',
69 getParentRoute: () => LayoutLayout2Route,
70} as any)
71​
72const LayoutLayout2LayoutARoute = LayoutLayout2LayoutAImport.update({
73 id: '/layout-a',
74 path: '/layout-a',
75 getParentRoute: () => LayoutLayout2Route,
76} as any)
77​
78// Populate the FileRoutesByPath interface
79​
80declare module '@tanstack/react-router' {
81 interface FileRoutesByPath {
82 '/': {
83 id: '/'
84 path: '/'
85 fullPath: '/'
86 preLoaderRoute: typeof IndexImport
87 parentRoute: typeof rootRoute
88 }
89 '/_layout': {
90 id: '/_layout'
91 path: ''
92 fullPath: ''
93 preLoaderRoute: typeof LayoutImport
94 parentRoute: typeof rootRoute
95 }
96 '/anchor': {
97 id: '/anchor'
98 path: '/anchor'
99 fullPath: '/anchor'
100 preLoaderRoute: typeof AnchorImport
101 parentRoute: typeof rootRoute
102 }
103 '/posts': {
104 id: '/posts'
105 path: '/posts'
106 fullPath: '/posts'
107 preLoaderRoute: typeof PostsImport
108 parentRoute: typeof rootRoute
109 }
110 '/_layout/_layout-2': {
111 id: '/_layout/_layout-2'
112 path: ''
113 fullPath: ''
114 preLoaderRoute: typeof LayoutLayout2Import
115 parentRoute: typeof LayoutImport
116 }
117 '/posts/$postId': {
118 id: '/posts/$postId'
119 path: '/$postId'
120 fullPath: '/posts/$postId'
121 preLoaderRoute: typeof PostsPostIdImport
122 parentRoute: typeof PostsImport
123 }
124 '/posts/': {
125 id: '/posts/'
126 path: '/'
127 fullPath: '/posts/'
128 preLoaderRoute: typeof PostsIndexImport
129 parentRoute: typeof PostsImport
130 }
131 '/_layout/_layout-2/layout-a': {
132 id: '/_layout/_layout-2/layout-a'
133 path: '/layout-a'
134 fullPath: '/layout-a'
135 preLoaderRoute: typeof LayoutLayout2LayoutAImport
136 parentRoute: typeof LayoutLayout2Import
137 }
138 '/_layout/_layout-2/layout-b': {
139 id: '/_layout/_layout-2/layout-b'
140 path: '/layout-b'
141 fullPath: '/layout-b'
142 preLoaderRoute: typeof LayoutLayout2LayoutBImport
143 parentRoute: typeof LayoutLayout2Import
144 }
145 }
147​
148// Create and export the route tree
149​
150interface LayoutLayout2RouteChildren {
151 LayoutLayout2LayoutARoute: typeof LayoutLayout2LayoutARoute
152 LayoutLayout2LayoutBRoute: typeof LayoutLayout2LayoutBRoute
154​
155const LayoutLayout2RouteChildren: LayoutLayout2RouteChildren = {
156 LayoutLayout2LayoutARoute: LayoutLayout2LayoutARoute,
157 LayoutLayout2LayoutBRoute: LayoutLayout2LayoutBRoute,
159​
160const LayoutLayout2RouteWithChildren = LayoutLayout2Route._addFileChildren(
161 LayoutLayout2RouteChildren,
163​
164interface LayoutRouteChildren {
165 LayoutLayout2Route: typeof LayoutLayout2RouteWithChildren
167​
168const LayoutRouteChildren: LayoutRouteChildren = {
169 LayoutLayout2Route: LayoutLayout2RouteWithChildren,
171​
172const LayoutRouteWithChildren =
173 LayoutRoute._addFileChildren(LayoutRouteChildren)
174​
175interface PostsRouteChildren {
176 PostsPostIdRoute: typeof PostsPostIdRoute
177 PostsIndexRoute: typeof PostsIndexRoute
179​
180const PostsRouteChildren: PostsRouteChildren = {
181 PostsPostIdRoute: PostsPostIdRoute,
182 PostsIndexRoute: PostsIndexRoute,
184​
185const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
186​
187export interface FileRoutesByFullPath {
188 '/': typeof IndexRoute
189 '': typeof LayoutLayout2RouteWithChildren
190 '/anchor': typeof AnchorRoute
191 '/posts': typeof PostsRouteWithChildren
192 '/posts/$postId': typeof PostsPostIdRoute
193 '/posts/': typeof PostsIndexRoute
194 '/layout-a': typeof LayoutLayout2LayoutARoute
195 '/layout-b': typeof LayoutLayout2LayoutBRoute
197​
198export interface FileRoutesByTo {
199 '/': typeof IndexRoute
200 '': typeof LayoutLayout2RouteWithChildren
201 '/anchor': typeof AnchorRoute
202 '/posts/$postId': typeof PostsPostIdRoute
203 '/posts': typeof PostsIndexRoute
204 '/layout-a': typeof LayoutLayout2LayoutARoute
205 '/layout-b': typeof LayoutLayout2LayoutBRoute
207​
208export interface FileRoutesById {
209 __root__: typeof rootRoute
210 '/': typeof IndexRoute
211 '/_layout': typeof LayoutRouteWithChildren
212 '/anchor': typeof AnchorRoute
213 '/posts': typeof PostsRouteWithChildren
214 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
215 '/posts/$postId': typeof PostsPostIdRoute
216 '/posts/': typeof PostsIndexRoute
217 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
218 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
220​
221export interface FileRouteTypes {
222 fileRoutesByFullPath: FileRoutesByFullPath
223 fullPaths:
224 | '/'
225 | ''
226 | '/anchor'
227 | '/posts'
228 | '/posts/$postId'
229 | '/posts/'
230 | '/layout-a'
231 | '/layout-b'
232 fileRoutesByTo: FileRoutesByTo
233 to:
234 | '/'
235 | ''
236 | '/anchor'
237 | '/posts/$postId'
238 | '/posts'
239 | '/layout-a'
240 | '/layout-b'
241 id:
242 | '__root__'
243 | '/'
244 | '/_layout'
245 | '/anchor'
246 | '/posts'
247 | '/_layout/_layout-2'
248 | '/posts/$postId'
249 | '/posts/'
250 | '/_layout/_layout-2/layout-a'
251 | '/_layout/_layout-2/layout-b'
252 fileRoutesById: FileRoutesById
254​
255export interface RootRouteChildren {
256 IndexRoute: typeof IndexRoute
257 LayoutRoute: typeof LayoutRouteWithChildren
258 AnchorRoute: typeof AnchorRoute
259 PostsRoute: typeof PostsRouteWithChildren
261​
262const rootRouteChildren: RootRouteChildren = {
263 IndexRoute: IndexRoute,
264 LayoutRoute: LayoutRouteWithChildren,
265 AnchorRoute: AnchorRoute,
266 PostsRoute: PostsRouteWithChildren,
268​
269export const routeTree = rootRoute
270 ._addFileChildren(rootRouteChildren)
271 ._addFileTypes<FileRouteTypes>()
272​
273/* ROUTE_MANIFEST_START
275 "routes": {
276 "__root__": {
277 "filePath": "__root.tsx",
278 "children": [
279 "/",
280 "/_layout",
281 "/anchor",
282 "/posts"
283 ]
284 },
285 "/": {
286 "filePath": "index.tsx"
287 },
288 "/_layout": {
289 "filePath": "_layout.tsx",
290 "children": [
291 "/_layout/_layout-2"
292 ]
293 },
294 "/anchor": {
295 "filePath": "anchor.tsx"
296 },
297 "/posts": {
298 "filePath": "posts.tsx",
299 "children": [
300 "/posts/$postId",
301 "/posts/"
302 ]
303 },
304 "/_layout/_layout-2": {
305 "filePath": "_layout/_layout-2.tsx",
306 "parent": "/_layout",
307 "children": [
308 "/_layout/_layout-2/layout-a",
309 "/_layout/_layout-2/layout-b"
310 ]
311 },
312 "/posts/$postId": {
313 "filePath": "posts.$postId.tsx",
314 "parent": "/posts"
315 },
316 "/posts/": {
317 "filePath": "posts.index.tsx",
318 "parent": "/posts"
319 },
320 "/_layout/_layout-2/layout-a": {
321 "filePath": "_layout/_layout-2/layout-a.tsx",
322 "parent": "/_layout/_layout-2"
323 },
324 "/_layout/_layout-2/layout-b": {
325 "filePath": "_layout/_layout-2/layout-b.tsx",
326 "parent": "/_layout/_layout-2"
327 }
328 }
330ROUTE_MANIFEST_END */