Open History to see the last commit
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 SignupRouteImport } from './routes/signup'
13import { Route as LogoutRouteImport } from './routes/logout'
14import { Route as LoginRouteImport } from './routes/login'
15import { Route as AuthedRouteImport } from './routes/_authed'
16import { Route as IndexRouteImport } from './routes/index'
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 SignupRoute = SignupRouteImport.update({
22 id: '/signup',
23 path: '/signup',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const LogoutRoute = LogoutRouteImport.update({
27 id: '/logout',
28 path: '/logout',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const LoginRoute = LoginRouteImport.update({
32 id: '/login',
33 path: '/login',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const AuthedRoute = AuthedRouteImport.update({
37 id: '/_authed',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const IndexRoute = IndexRouteImport.update({
41 id: '/',
42 path: '/',
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
69}
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
77}
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
88}
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
112}
113export interface RootRouteChildren {
114 IndexRoute: typeof IndexRoute
115 AuthedRoute: typeof AuthedRouteWithChildren
116 LoginRoute: typeof LoginRoute
117 LogoutRoute: typeof LogoutRoute
118 SignupRoute: typeof SignupRoute
119}
120β
121declare module '@tanstack/react-router' {
122 interface FileRoutesByPath {
123 '/signup': {
124 id: '/signup'
125 path: '/signup'
126 fullPath: '/signup'
127 preLoaderRoute: typeof SignupRouteImport
128 parentRoute: typeof rootRouteImport
129 }
130 '/logout': {
131 id: '/logout'
132 path: '/logout'
133 fullPath: '/logout'
134 preLoaderRoute: typeof LogoutRouteImport
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 '/_authed': {
145 id: '/_authed'
146 path: ''
147 fullPath: ''
148 preLoaderRoute: typeof AuthedRouteImport
149 parentRoute: typeof rootRouteImport
150 }
151 '/': {
152 id: '/'
153 path: '/'
154 fullPath: '/'
155 preLoaderRoute: typeof IndexRouteImport
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 }
180}
181β
182interface AuthedPostsRouteChildren {
183 AuthedPostsPostIdRoute: typeof AuthedPostsPostIdRoute
184 AuthedPostsIndexRoute: typeof AuthedPostsIndexRoute
185}
186β
187const AuthedPostsRouteChildren: AuthedPostsRouteChildren = {
188 AuthedPostsPostIdRoute: AuthedPostsPostIdRoute,
189 AuthedPostsIndexRoute: AuthedPostsIndexRoute,
190}
191β
192const AuthedPostsRouteWithChildren = AuthedPostsRoute._addFileChildren(
193 AuthedPostsRouteChildren,
194)
195β
196interface AuthedRouteChildren {
197 AuthedPostsRoute: typeof AuthedPostsRouteWithChildren
198}
199β
200const AuthedRouteChildren: AuthedRouteChildren = {
201 AuthedPostsRoute: AuthedPostsRouteWithChildren,
202}
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,
213}
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 }
225}