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

routeTree.gen.ts

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