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

routeTree.gen.ts

230 lines7.6 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 PathlessLayoutRouteImport } from './routes/_pathlessLayout'
13import { Route as PostsRouteRouteImport } from './routes/posts.route'
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 PathlessLayoutRoute = PathlessLayoutRouteImport.update({
22 id: '/_pathlessLayout',
23 getParentRoute: () => rootRouteImport,
24} as any)
25const PostsRouteRoute = PostsRouteRouteImport.update({
26 id: '/posts',
27 path: '/posts',
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: () => PostsRouteRoute,
39} as any)
40const PostsPostIdRoute = PostsPostIdRouteImport.update({
41 id: '/$postId',
42 path: '/$postId',
43 getParentRoute: () => PostsRouteRoute,
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 PostsRouteRouteWithChildren
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 '/posts': typeof PostsRouteRouteWithChildren
82 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
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 | '/posts'
104 | '/_pathlessLayout'
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 PostsRouteRoute: typeof PostsRouteRouteWithChildren
115 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
117​
118declare module '@tanstack/react-router' {
119 interface FileRoutesByPath {
120 '/_pathlessLayout': {
121 id: '/_pathlessLayout'
122 path: ''
123 fullPath: ''
124 preLoaderRoute: typeof PathlessLayoutRouteImport
125 parentRoute: typeof rootRouteImport
126 }
127 '/posts': {
128 id: '/posts'
129 path: '/posts'
130 fullPath: '/posts'
131 preLoaderRoute: typeof PostsRouteRouteImport
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 PostsRouteRoute
147 }
148 '/posts/$postId': {
149 id: '/posts/$postId'
150 path: '/$postId'
151 fullPath: '/posts/$postId'
152 preLoaderRoute: typeof PostsPostIdRouteImport
153 parentRoute: typeof PostsRouteRoute
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 PostsRouteRouteChildren {
180 PostsPostIdRoute: typeof PostsPostIdRoute
181 PostsIndexRoute: typeof PostsIndexRoute
183​
184const PostsRouteRouteChildren: PostsRouteRouteChildren = {
185 PostsPostIdRoute: PostsPostIdRoute,
186 PostsIndexRoute: PostsIndexRoute,
188​
189const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
190 PostsRouteRouteChildren,
192​
193interface PathlessLayoutNestedLayoutRouteChildren {
194 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
195 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
197​
198const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
199 {
200 PathlessLayoutNestedLayoutRouteARoute:
201 PathlessLayoutNestedLayoutRouteARoute,
202 PathlessLayoutNestedLayoutRouteBRoute:
203 PathlessLayoutNestedLayoutRouteBRoute,
204 }
205​
206const PathlessLayoutNestedLayoutRouteWithChildren =
207 PathlessLayoutNestedLayoutRoute._addFileChildren(
208 PathlessLayoutNestedLayoutRouteChildren,
209 )
210​
211interface PathlessLayoutRouteChildren {
212 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
214​
215const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
216 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
218​
219const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
220 PathlessLayoutRouteChildren,
222​
223const rootRouteChildren: RootRouteChildren = {
224 IndexRoute: IndexRoute,
225 PostsRouteRoute: PostsRouteRouteWithChildren,
226 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
228export const routeTree = rootRouteImport
229 ._addFileChildren(rootRouteChildren)
230 ._addFileTypes<FileRouteTypes>()