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

routeTree.gen.ts

246 lines7.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 PostsRouteImport } from './routes/posts'
13import { Route as LayoutRouteImport } from './routes/_layout'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as PostsIndexRouteImport } from './routes/posts.index'
16import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
17import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
18import { Route as TransitionCountQueryRouteImport } from './routes/transition/count/query'
19import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
20import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
21​
22const PostsRoute = PostsRouteImport.update({
23 id: '/posts',
24 path: '/posts',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const LayoutRoute = LayoutRouteImport.update({
28 id: '/_layout',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const IndexRoute = IndexRouteImport.update({
32 id: '/',
33 path: '/',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const PostsIndexRoute = PostsIndexRouteImport.update({
37 id: '/',
38 path: '/',
39 getParentRoute: () => PostsRoute,
40} as any)
41const PostsPostIdRoute = PostsPostIdRouteImport.update({
42 id: '/$postId',
43 path: '/$postId',
44 getParentRoute: () => PostsRoute,
45} as any)
46const LayoutLayout2Route = LayoutLayout2RouteImport.update({
47 id: '/_layout-2',
48 getParentRoute: () => LayoutRoute,
49} as any)
50const TransitionCountQueryRoute = TransitionCountQueryRouteImport.update({
51 id: '/transition/count/query',
52 path: '/transition/count/query',
53 getParentRoute: () => rootRouteImport,
54} as any)
55const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
56 id: '/layout-b',
57 path: '/layout-b',
58 getParentRoute: () => LayoutLayout2Route,
59} as any)
60const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
61 id: '/layout-a',
62 path: '/layout-a',
63 getParentRoute: () => LayoutLayout2Route,
64} as any)
65​
66export interface FileRoutesByFullPath {
67 '/': typeof IndexRoute
68 '/posts': typeof PostsRouteWithChildren
69 '/posts/$postId': typeof PostsPostIdRoute
70 '/posts/': typeof PostsIndexRoute
71 '/layout-a': typeof LayoutLayout2LayoutARoute
72 '/layout-b': typeof LayoutLayout2LayoutBRoute
73 '/transition/count/query': typeof TransitionCountQueryRoute
75export interface FileRoutesByTo {
76 '/': typeof IndexRoute
77 '/posts/$postId': typeof PostsPostIdRoute
78 '/posts': typeof PostsIndexRoute
79 '/layout-a': typeof LayoutLayout2LayoutARoute
80 '/layout-b': typeof LayoutLayout2LayoutBRoute
81 '/transition/count/query': typeof TransitionCountQueryRoute
83export interface FileRoutesById {
84 __root__: typeof rootRouteImport
85 '/': typeof IndexRoute
86 '/_layout': typeof LayoutRouteWithChildren
87 '/posts': typeof PostsRouteWithChildren
88 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
89 '/posts/$postId': typeof PostsPostIdRoute
90 '/posts/': typeof PostsIndexRoute
91 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
92 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
93 '/transition/count/query': typeof TransitionCountQueryRoute
95export interface FileRouteTypes {
96 fileRoutesByFullPath: FileRoutesByFullPath
97 fullPaths:
98 | '/'
99 | '/posts'
100 | '/posts/$postId'
101 | '/posts/'
102 | '/layout-a'
103 | '/layout-b'
104 | '/transition/count/query'
105 fileRoutesByTo: FileRoutesByTo
106 to:
107 | '/'
108 | '/posts/$postId'
109 | '/posts'
110 | '/layout-a'
111 | '/layout-b'
112 | '/transition/count/query'
113 id:
114 | '__root__'
115 | '/'
116 | '/_layout'
117 | '/posts'
118 | '/_layout/_layout-2'
119 | '/posts/$postId'
120 | '/posts/'
121 | '/_layout/_layout-2/layout-a'
122 | '/_layout/_layout-2/layout-b'
123 | '/transition/count/query'
124 fileRoutesById: FileRoutesById
126export interface RootRouteChildren {
127 IndexRoute: typeof IndexRoute
128 LayoutRoute: typeof LayoutRouteWithChildren
129 PostsRoute: typeof PostsRouteWithChildren
130 TransitionCountQueryRoute: typeof TransitionCountQueryRoute
132​
133declare module '@tanstack/solid-router' {
134 interface FileRoutesByPath {
135 '/posts': {
136 id: '/posts'
137 path: '/posts'
138 fullPath: '/posts'
139 preLoaderRoute: typeof PostsRouteImport
140 parentRoute: typeof rootRouteImport
141 }
142 '/_layout': {
143 id: '/_layout'
144 path: ''
145 fullPath: ''
146 preLoaderRoute: typeof LayoutRouteImport
147 parentRoute: typeof rootRouteImport
148 }
149 '/': {
150 id: '/'
151 path: '/'
152 fullPath: '/'
153 preLoaderRoute: typeof IndexRouteImport
154 parentRoute: typeof rootRouteImport
155 }
156 '/posts/': {
157 id: '/posts/'
158 path: '/'
159 fullPath: '/posts/'
160 preLoaderRoute: typeof PostsIndexRouteImport
161 parentRoute: typeof PostsRoute
162 }
163 '/posts/$postId': {
164 id: '/posts/$postId'
165 path: '/$postId'
166 fullPath: '/posts/$postId'
167 preLoaderRoute: typeof PostsPostIdRouteImport
168 parentRoute: typeof PostsRoute
169 }
170 '/_layout/_layout-2': {
171 id: '/_layout/_layout-2'
172 path: ''
173 fullPath: ''
174 preLoaderRoute: typeof LayoutLayout2RouteImport
175 parentRoute: typeof LayoutRoute
176 }
177 '/transition/count/query': {
178 id: '/transition/count/query'
179 path: '/transition/count/query'
180 fullPath: '/transition/count/query'
181 preLoaderRoute: typeof TransitionCountQueryRouteImport
182 parentRoute: typeof rootRouteImport
183 }
184 '/_layout/_layout-2/layout-b': {
185 id: '/_layout/_layout-2/layout-b'
186 path: '/layout-b'
187 fullPath: '/layout-b'
188 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
189 parentRoute: typeof LayoutLayout2Route
190 }
191 '/_layout/_layout-2/layout-a': {
192 id: '/_layout/_layout-2/layout-a'
193 path: '/layout-a'
194 fullPath: '/layout-a'
195 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
196 parentRoute: typeof LayoutLayout2Route
197 }
198 }
200​
201interface LayoutLayout2RouteChildren {
202 LayoutLayout2LayoutARoute: typeof LayoutLayout2LayoutARoute
203 LayoutLayout2LayoutBRoute: typeof LayoutLayout2LayoutBRoute
205​
206const LayoutLayout2RouteChildren: LayoutLayout2RouteChildren = {
207 LayoutLayout2LayoutARoute: LayoutLayout2LayoutARoute,
208 LayoutLayout2LayoutBRoute: LayoutLayout2LayoutBRoute,
210​
211const LayoutLayout2RouteWithChildren = LayoutLayout2Route._addFileChildren(
212 LayoutLayout2RouteChildren,
214​
215interface LayoutRouteChildren {
216 LayoutLayout2Route: typeof LayoutLayout2RouteWithChildren
218​
219const LayoutRouteChildren: LayoutRouteChildren = {
220 LayoutLayout2Route: LayoutLayout2RouteWithChildren,
222​
223const LayoutRouteWithChildren =
224 LayoutRoute._addFileChildren(LayoutRouteChildren)
225​
226interface PostsRouteChildren {
227 PostsPostIdRoute: typeof PostsPostIdRoute
228 PostsIndexRoute: typeof PostsIndexRoute
230​
231const PostsRouteChildren: PostsRouteChildren = {
232 PostsPostIdRoute: PostsPostIdRoute,
233 PostsIndexRoute: PostsIndexRoute,
235​
236const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
237​
238const rootRouteChildren: RootRouteChildren = {
239 IndexRoute: IndexRoute,
240 LayoutRoute: LayoutRouteWithChildren,
241 PostsRoute: PostsRouteWithChildren,
242 TransitionCountQueryRoute: TransitionCountQueryRoute,
244export const routeTree = rootRouteImport
245 ._addFileChildren(rootRouteChildren)
246 ._addFileTypes<FileRouteTypes>()