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

routeTree.gen.ts

225 lines6.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​
11import { Route as rootRouteImport } from './routes/__root'
12import { Route as IndexRouteImport } from './routes/index'
13import { Route as AuthedRouteImport } from './routes/_authed'
14import { Route as LoginRouteImport } from './routes/login'
15import { Route as LogoutRouteImport } from './routes/logout'
16import { Route as SignupRouteImport } from './routes/signup'
17import { Route as AuthedPostsRouteImport } from './routes/_authed/posts'
18import { Route as AuthedPostsIndexRouteImport } from './routes/_authed/posts.index'
19import { Route as AuthedPostsPostIdRouteImport } from './routes/_authed/posts.$postId'
20​
21const IndexRoute = IndexRouteImport.update({
22 id: '/',
23 path: '/',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const AuthedRoute = AuthedRouteImport.update({
27 id: '/_authed',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const LoginRoute = LoginRouteImport.update({
31 id: '/login',
32 path: '/login',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const LogoutRoute = LogoutRouteImport.update({
36 id: '/logout',
37 path: '/logout',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const SignupRoute = SignupRouteImport.update({
41 id: '/signup',
42 path: '/signup',
43 getParentRoute: () => rootRouteImport,
44} as any)
45const AuthedPostsRoute = AuthedPostsRouteImport.update({
46 id: '/posts',
47 path: '/posts',
48 getParentRoute: () => AuthedRoute,
49} as any)
50const AuthedPostsIndexRoute = AuthedPostsIndexRouteImport.update({
51 id: '/',
52 path: '/',
53 getParentRoute: () => AuthedPostsRoute,
54} as any)
55const AuthedPostsPostIdRoute = AuthedPostsPostIdRouteImport.update({
56 id: '/$postId',
57 path: '/$postId',
58 getParentRoute: () => AuthedPostsRoute,
59} as any)
60​
61export interface FileRoutesByFullPath {
62 '/': typeof IndexRoute
63 '/login': typeof LoginRoute
64 '/logout': typeof LogoutRoute
65 '/signup': typeof SignupRoute
66 '/posts': typeof AuthedPostsRouteWithChildren
67 '/posts/$postId': typeof AuthedPostsPostIdRoute
68 '/posts/': typeof AuthedPostsIndexRoute
70export interface FileRoutesByTo {
71 '/': typeof IndexRoute
72 '/login': typeof LoginRoute
73 '/logout': typeof LogoutRoute
74 '/signup': typeof SignupRoute
75 '/posts/$postId': typeof AuthedPostsPostIdRoute
76 '/posts': typeof AuthedPostsIndexRoute
78export interface FileRoutesById {
79 __root__: typeof rootRouteImport
80 '/': typeof IndexRoute
81 '/_authed': typeof AuthedRouteWithChildren
82 '/login': typeof LoginRoute
83 '/logout': typeof LogoutRoute
84 '/signup': typeof SignupRoute
85 '/_authed/posts': typeof AuthedPostsRouteWithChildren
86 '/_authed/posts/$postId': typeof AuthedPostsPostIdRoute
87 '/_authed/posts/': typeof AuthedPostsIndexRoute
89export interface FileRouteTypes {
90 fileRoutesByFullPath: FileRoutesByFullPath
91 fullPaths:
92 | '/'
93 | '/login'
94 | '/logout'
95 | '/signup'
96 | '/posts'
97 | '/posts/$postId'
98 | '/posts/'
99 fileRoutesByTo: FileRoutesByTo
100 to: '/' | '/login' | '/logout' | '/signup' | '/posts/$postId' | '/posts'
101 id:
102 | '__root__'
103 | '/'
104 | '/_authed'
105 | '/login'
106 | '/logout'
107 | '/signup'
108 | '/_authed/posts'
109 | '/_authed/posts/$postId'
110 | '/_authed/posts/'
111 fileRoutesById: FileRoutesById
113export interface RootRouteChildren {
114 IndexRoute: typeof IndexRoute
115 AuthedRoute: typeof AuthedRouteWithChildren
116 LoginRoute: typeof LoginRoute
117 LogoutRoute: typeof LogoutRoute
118 SignupRoute: typeof SignupRoute
120​
121declare module '@tanstack/react-router' {
122 interface FileRoutesByPath {
123 '/': {
124 id: '/'
125 path: '/'
126 fullPath: '/'
127 preLoaderRoute: typeof IndexRouteImport
128 parentRoute: typeof rootRouteImport
129 }
130 '/_authed': {
131 id: '/_authed'
132 path: ''
133 fullPath: '/'
134 preLoaderRoute: typeof AuthedRouteImport
135 parentRoute: typeof rootRouteImport
136 }
137 '/login': {
138 id: '/login'
139 path: '/login'
140 fullPath: '/login'
141 preLoaderRoute: typeof LoginRouteImport
142 parentRoute: typeof rootRouteImport
143 }
144 '/logout': {
145 id: '/logout'
146 path: '/logout'
147 fullPath: '/logout'
148 preLoaderRoute: typeof LogoutRouteImport
149 parentRoute: typeof rootRouteImport
150 }
151 '/signup': {
152 id: '/signup'
153 path: '/signup'
154 fullPath: '/signup'
155 preLoaderRoute: typeof SignupRouteImport
156 parentRoute: typeof rootRouteImport
157 }
158 '/_authed/posts': {
159 id: '/_authed/posts'
160 path: '/posts'
161 fullPath: '/posts'
162 preLoaderRoute: typeof AuthedPostsRouteImport
163 parentRoute: typeof AuthedRoute
164 }
165 '/_authed/posts/': {
166 id: '/_authed/posts/'
167 path: '/'
168 fullPath: '/posts/'
169 preLoaderRoute: typeof AuthedPostsIndexRouteImport
170 parentRoute: typeof AuthedPostsRoute
171 }
172 '/_authed/posts/$postId': {
173 id: '/_authed/posts/$postId'
174 path: '/$postId'
175 fullPath: '/posts/$postId'
176 preLoaderRoute: typeof AuthedPostsPostIdRouteImport
177 parentRoute: typeof AuthedPostsRoute
178 }
179 }
181​
182interface AuthedPostsRouteChildren {
183 AuthedPostsPostIdRoute: typeof AuthedPostsPostIdRoute
184 AuthedPostsIndexRoute: typeof AuthedPostsIndexRoute
186​
187const AuthedPostsRouteChildren: AuthedPostsRouteChildren = {
188 AuthedPostsPostIdRoute: AuthedPostsPostIdRoute,
189 AuthedPostsIndexRoute: AuthedPostsIndexRoute,
191​
192const AuthedPostsRouteWithChildren = AuthedPostsRoute._addFileChildren(
193 AuthedPostsRouteChildren,
195​
196interface AuthedRouteChildren {
197 AuthedPostsRoute: typeof AuthedPostsRouteWithChildren
199​
200const AuthedRouteChildren: AuthedRouteChildren = {
201 AuthedPostsRoute: AuthedPostsRouteWithChildren,
203​
204const AuthedRouteWithChildren =
205 AuthedRoute._addFileChildren(AuthedRouteChildren)
206​
207const rootRouteChildren: RootRouteChildren = {
208 IndexRoute: IndexRoute,
209 AuthedRoute: AuthedRouteWithChildren,
210 LoginRoute: LoginRoute,
211 LogoutRoute: LogoutRoute,
212 SignupRoute: SignupRoute,
214export const routeTree = rootRouteImport
215 ._addFileChildren(rootRouteChildren)
216 ._addFileTypes<FileRouteTypes>()
217​
218import type { getRouter } from './router.tsx'
219import type { createStart } from '@tanstack/react-start'
220declare module '@tanstack/react-start' {
221 interface Register {
222 ssr: true
223 router: Awaited<ReturnType<typeof getRouter>>
224 }