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

routeTree.gen.ts

248 lines8.1 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 CounterRouteImport } from './routes/counter'
15import { Route as PostsRouteImport } from './routes/posts'
16import { Route as PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
17import { Route as PostsIndexRouteImport } from './routes/posts.index'
18import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
19import { Route as PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
20import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
21​
22const IndexRoute = IndexRouteImport.update({
23 id: '/',
24 path: '/',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
28 id: '/_pathlessLayout',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const CounterRoute = CounterRouteImport.update({
32 id: '/counter',
33 path: '/counter',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const PostsRoute = PostsRouteImport.update({
37 id: '/posts',
38 path: '/posts',
39 getParentRoute: () => rootRouteImport,
40} as any)
41const PathlessLayoutNestedLayoutRoute =
42 PathlessLayoutNestedLayoutRouteImport.update({
43 id: '/_nested-layout',
44 getParentRoute: () => PathlessLayoutRoute,
45 } as any)
46const PostsIndexRoute = PostsIndexRouteImport.update({
47 id: '/',
48 path: '/',
49 getParentRoute: () => PostsRoute,
50} as any)
51const PostsPostIdRoute = PostsPostIdRouteImport.update({
52 id: '/$postId',
53 path: '/$postId',
54 getParentRoute: () => PostsRoute,
55} as any)
56const PathlessLayoutNestedLayoutRouteARoute =
57 PathlessLayoutNestedLayoutRouteARouteImport.update({
58 id: '/route-a',
59 path: '/route-a',
60 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
61 } as any)
62const PathlessLayoutNestedLayoutRouteBRoute =
63 PathlessLayoutNestedLayoutRouteBRouteImport.update({
64 id: '/route-b',
65 path: '/route-b',
66 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
67 } as any)
68​
69export interface FileRoutesByFullPath {
70 '/': typeof IndexRoute
71 '/counter': typeof CounterRoute
72 '/posts': typeof PostsRouteWithChildren
73 '/posts/$postId': typeof PostsPostIdRoute
74 '/posts/': typeof PostsIndexRoute
75 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
76 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
78export interface FileRoutesByTo {
79 '/': typeof IndexRoute
80 '/counter': typeof CounterRoute
81 '/posts/$postId': typeof PostsPostIdRoute
82 '/posts': typeof PostsIndexRoute
83 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
84 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
86export interface FileRoutesById {
87 __root__: typeof rootRouteImport
88 '/': typeof IndexRoute
89 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
90 '/counter': typeof CounterRoute
91 '/posts': typeof PostsRouteWithChildren
92 '/_pathlessLayout/_nested-layout': typeof PathlessLayoutNestedLayoutRouteWithChildren
93 '/posts/$postId': typeof PostsPostIdRoute
94 '/posts/': typeof PostsIndexRoute
95 '/_pathlessLayout/_nested-layout/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
96 '/_pathlessLayout/_nested-layout/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
98export interface FileRouteTypes {
99 fileRoutesByFullPath: FileRoutesByFullPath
100 fullPaths:
101 | '/'
102 | '/counter'
103 | '/posts'
104 | '/posts/$postId'
105 | '/posts/'
106 | '/route-a'
107 | '/route-b'
108 fileRoutesByTo: FileRoutesByTo
109 to: '/' | '/counter' | '/posts/$postId' | '/posts' | '/route-a' | '/route-b'
110 id:
111 | '__root__'
112 | '/'
113 | '/_pathlessLayout'
114 | '/counter'
115 | '/posts'
116 | '/_pathlessLayout/_nested-layout'
117 | '/posts/$postId'
118 | '/posts/'
119 | '/_pathlessLayout/_nested-layout/route-a'
120 | '/_pathlessLayout/_nested-layout/route-b'
121 fileRoutesById: FileRoutesById
123export interface RootRouteChildren {
124 IndexRoute: typeof IndexRoute
125 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
126 CounterRoute: typeof CounterRoute
127 PostsRoute: typeof PostsRouteWithChildren
129​
130declare module '@tanstack/solid-router' {
131 interface FileRoutesByPath {
132 '/': {
133 id: '/'
134 path: '/'
135 fullPath: '/'
136 preLoaderRoute: typeof IndexRouteImport
137 parentRoute: typeof rootRouteImport
138 }
139 '/_pathlessLayout': {
140 id: '/_pathlessLayout'
141 path: ''
142 fullPath: '/'
143 preLoaderRoute: typeof PathlessLayoutRouteImport
144 parentRoute: typeof rootRouteImport
145 }
146 '/counter': {
147 id: '/counter'
148 path: '/counter'
149 fullPath: '/counter'
150 preLoaderRoute: typeof CounterRouteImport
151 parentRoute: typeof rootRouteImport
152 }
153 '/posts': {
154 id: '/posts'
155 path: '/posts'
156 fullPath: '/posts'
157 preLoaderRoute: typeof PostsRouteImport
158 parentRoute: typeof rootRouteImport
159 }
160 '/_pathlessLayout/_nested-layout': {
161 id: '/_pathlessLayout/_nested-layout'
162 path: ''
163 fullPath: '/'
164 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteImport
165 parentRoute: typeof PathlessLayoutRoute
166 }
167 '/posts/': {
168 id: '/posts/'
169 path: '/'
170 fullPath: '/posts/'
171 preLoaderRoute: typeof PostsIndexRouteImport
172 parentRoute: typeof PostsRoute
173 }
174 '/posts/$postId': {
175 id: '/posts/$postId'
176 path: '/$postId'
177 fullPath: '/posts/$postId'
178 preLoaderRoute: typeof PostsPostIdRouteImport
179 parentRoute: typeof PostsRoute
180 }
181 '/_pathlessLayout/_nested-layout/route-a': {
182 id: '/_pathlessLayout/_nested-layout/route-a'
183 path: '/route-a'
184 fullPath: '/route-a'
185 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteARouteImport
186 parentRoute: typeof PathlessLayoutNestedLayoutRoute
187 }
188 '/_pathlessLayout/_nested-layout/route-b': {
189 id: '/_pathlessLayout/_nested-layout/route-b'
190 path: '/route-b'
191 fullPath: '/route-b'
192 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteBRouteImport
193 parentRoute: typeof PathlessLayoutNestedLayoutRoute
194 }
195 }
197​
198interface PathlessLayoutNestedLayoutRouteChildren {
199 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
200 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
202​
203const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
204 {
205 PathlessLayoutNestedLayoutRouteARoute:
206 PathlessLayoutNestedLayoutRouteARoute,
207 PathlessLayoutNestedLayoutRouteBRoute:
208 PathlessLayoutNestedLayoutRouteBRoute,
209 }
210​
211const PathlessLayoutNestedLayoutRouteWithChildren =
212 PathlessLayoutNestedLayoutRoute._addFileChildren(
213 PathlessLayoutNestedLayoutRouteChildren,
214 )
215​
216interface PathlessLayoutRouteChildren {
217 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
219​
220const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
221 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
223​
224const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
225 PathlessLayoutRouteChildren,
227​
228interface PostsRouteChildren {
229 PostsPostIdRoute: typeof PostsPostIdRoute
230 PostsIndexRoute: typeof PostsIndexRoute
232​
233const PostsRouteChildren: PostsRouteChildren = {
234 PostsPostIdRoute: PostsPostIdRoute,
235 PostsIndexRoute: PostsIndexRoute,
237​
238const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
239​
240const rootRouteChildren: RootRouteChildren = {
241 IndexRoute: IndexRoute,
242 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
243 CounterRoute: CounterRoute,
244 PostsRoute: PostsRouteWithChildren,
246export const routeTree = rootRouteImport
247 ._addFileChildren(rootRouteChildren)
248 ._addFileTypes<FileRouteTypes>()