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 AuthedRouteImport } from './routes/_authed'
13import { Route as IndexRouteImport } from './routes/index'
14import { Route as AuthedPostsRouteImport } from './routes/_authed/posts'
15import { Route as AuthedPostsIndexRouteImport } from './routes/_authed/posts.index'
16import { Route as AuthedProfileSplatRouteImport } from './routes/_authed/profile.$'
17import { Route as AuthedPostsPostIdRouteImport } from './routes/_authed/posts.$postId'
18β
19const AuthedRoute = AuthedRouteImport.update({
20 id: '/_authed',
21 getParentRoute: () => rootRouteImport,
22} as any)
23const IndexRoute = IndexRouteImport.update({
24 id: '/',
25 path: '/',
26 getParentRoute: () => rootRouteImport,
27} as any)
28const AuthedPostsRoute = AuthedPostsRouteImport.update({
29 id: '/posts',
30 path: '/posts',
31 getParentRoute: () => AuthedRoute,
32} as any)
33const AuthedPostsIndexRoute = AuthedPostsIndexRouteImport.update({
34 id: '/',
35 path: '/',
36 getParentRoute: () => AuthedPostsRoute,
37} as any)
38const AuthedProfileSplatRoute = AuthedProfileSplatRouteImport.update({
39 id: '/profile/$',
40 path: '/profile/$',
41 getParentRoute: () => AuthedRoute,
42} as any)
43const AuthedPostsPostIdRoute = AuthedPostsPostIdRouteImport.update({
44 id: '/$postId',
45 path: '/$postId',
46 getParentRoute: () => AuthedPostsRoute,
47} as any)
48β
49export interface FileRoutesByFullPath {
50 '/': typeof IndexRoute
51 '/posts': typeof AuthedPostsRouteWithChildren
52 '/posts/$postId': typeof AuthedPostsPostIdRoute
53 '/profile/$': typeof AuthedProfileSplatRoute
54 '/posts/': typeof AuthedPostsIndexRoute
55}
56export interface FileRoutesByTo {
57 '/': typeof IndexRoute
58 '/posts/$postId': typeof AuthedPostsPostIdRoute
59 '/profile/$': typeof AuthedProfileSplatRoute
60 '/posts': typeof AuthedPostsIndexRoute
61}
62export interface FileRoutesById {
63 __root__: typeof rootRouteImport
64 '/': typeof IndexRoute
65 '/_authed': typeof AuthedRouteWithChildren
66 '/_authed/posts': typeof AuthedPostsRouteWithChildren
67 '/_authed/posts/$postId': typeof AuthedPostsPostIdRoute
68 '/_authed/profile/$': typeof AuthedProfileSplatRoute
69 '/_authed/posts/': typeof AuthedPostsIndexRoute
70}
71export interface FileRouteTypes {
72 fileRoutesByFullPath: FileRoutesByFullPath
73 fullPaths: '/' | '/posts' | '/posts/$postId' | '/profile/$' | '/posts/'
74 fileRoutesByTo: FileRoutesByTo
75 to: '/' | '/posts/$postId' | '/profile/$' | '/posts'
76 id:
77 | '__root__'
78 | '/'
79 | '/_authed'
80 | '/_authed/posts'
81 | '/_authed/posts/$postId'
82 | '/_authed/profile/$'
83 | '/_authed/posts/'
84 fileRoutesById: FileRoutesById
85}
86export interface RootRouteChildren {
87 IndexRoute: typeof IndexRoute
88 AuthedRoute: typeof AuthedRouteWithChildren
89}
90β
91declare module '@tanstack/react-router' {
92 interface FileRoutesByPath {
93 '/_authed': {
94 id: '/_authed'
95 path: ''
96 fullPath: ''
97 preLoaderRoute: typeof AuthedRouteImport
98 parentRoute: typeof rootRouteImport
99 }
100 '/': {
101 id: '/'
102 path: '/'
103 fullPath: '/'
104 preLoaderRoute: typeof IndexRouteImport
105 parentRoute: typeof rootRouteImport
106 }
107 '/_authed/posts': {
108 id: '/_authed/posts'
109 path: '/posts'
110 fullPath: '/posts'
111 preLoaderRoute: typeof AuthedPostsRouteImport
112 parentRoute: typeof AuthedRoute
113 }
114 '/_authed/posts/': {
115 id: '/_authed/posts/'
116 path: '/'
117 fullPath: '/posts/'
118 preLoaderRoute: typeof AuthedPostsIndexRouteImport
119 parentRoute: typeof AuthedPostsRoute
120 }
121 '/_authed/profile/$': {
122 id: '/_authed/profile/$'
123 path: '/profile/$'
124 fullPath: '/profile/$'
125 preLoaderRoute: typeof AuthedProfileSplatRouteImport
126 parentRoute: typeof AuthedRoute
127 }
128 '/_authed/posts/$postId': {
129 id: '/_authed/posts/$postId'
130 path: '/$postId'
131 fullPath: '/posts/$postId'
132 preLoaderRoute: typeof AuthedPostsPostIdRouteImport
133 parentRoute: typeof AuthedPostsRoute
134 }
135 }
136}
137β
138interface AuthedPostsRouteChildren {
139 AuthedPostsPostIdRoute: typeof AuthedPostsPostIdRoute
140 AuthedPostsIndexRoute: typeof AuthedPostsIndexRoute
141}
142β
143const AuthedPostsRouteChildren: AuthedPostsRouteChildren = {
144 AuthedPostsPostIdRoute: AuthedPostsPostIdRoute,
145 AuthedPostsIndexRoute: AuthedPostsIndexRoute,
146}
147β
148const AuthedPostsRouteWithChildren = AuthedPostsRoute._addFileChildren(
149 AuthedPostsRouteChildren,
150)
151β
152interface AuthedRouteChildren {
153 AuthedPostsRoute: typeof AuthedPostsRouteWithChildren
154 AuthedProfileSplatRoute: typeof AuthedProfileSplatRoute
155}
156β
157const AuthedRouteChildren: AuthedRouteChildren = {
158 AuthedPostsRoute: AuthedPostsRouteWithChildren,
159 AuthedProfileSplatRoute: AuthedProfileSplatRoute,
160}
161β
162const AuthedRouteWithChildren =
163 AuthedRoute._addFileChildren(AuthedRouteChildren)
164β
165const rootRouteChildren: RootRouteChildren = {
166 IndexRoute: IndexRoute,
167 AuthedRoute: AuthedRouteWithChildren,
168}
169export const routeTree = rootRouteImport
170 ._addFileChildren(rootRouteChildren)
171 ._addFileTypes<FileRouteTypes>()
172β
173import type { getRouter } from './router.tsx'
174import type { startInstance } from './start.ts'
175declare module '@tanstack/react-start' {
176 interface Register {
177 ssr: true
178 router: Awaited<ReturnType<typeof getRouter>>
179 config: Awaited<ReturnType<typeof startInstance.getOptions>>
180 }
181}