1010
1111import { Route as rootRouteImport } from './routes/__root'
1212import { Route as LogoutRouteImport } from './routes/logout'
13+ import { Route as ClientRouteImport } from './routes/client'
1314import { Route as AuthenticatedRouteImport } from './routes/_authenticated'
1415import { Route as IndexRouteImport } from './routes/index'
1516import { Route as AuthenticatedAccountRouteImport } from './routes/_authenticated/account'
@@ -20,6 +21,11 @@ const LogoutRoute = LogoutRouteImport.update({
2021 path : '/logout' ,
2122 getParentRoute : ( ) => rootRouteImport ,
2223} as any )
24+ const ClientRoute = ClientRouteImport . update ( {
25+ id : '/client' ,
26+ path : '/client' ,
27+ getParentRoute : ( ) => rootRouteImport ,
28+ } as any )
2329const AuthenticatedRoute = AuthenticatedRouteImport . update ( {
2430 id : '/_authenticated' ,
2531 getParentRoute : ( ) => rootRouteImport ,
@@ -42,12 +48,14 @@ const ApiAuthCallbackRoute = ApiAuthCallbackRouteImport.update({
4248
4349export interface FileRoutesByFullPath {
4450 '/' : typeof IndexRoute
51+ '/client' : typeof ClientRoute
4552 '/logout' : typeof LogoutRoute
4653 '/account' : typeof AuthenticatedAccountRoute
4754 '/api/auth/callback' : typeof ApiAuthCallbackRoute
4855}
4956export interface FileRoutesByTo {
5057 '/' : typeof IndexRoute
58+ '/client' : typeof ClientRoute
5159 '/logout' : typeof LogoutRoute
5260 '/account' : typeof AuthenticatedAccountRoute
5361 '/api/auth/callback' : typeof ApiAuthCallbackRoute
@@ -56,19 +64,21 @@ export interface FileRoutesById {
5664 __root__ : typeof rootRouteImport
5765 '/' : typeof IndexRoute
5866 '/_authenticated' : typeof AuthenticatedRouteWithChildren
67+ '/client' : typeof ClientRoute
5968 '/logout' : typeof LogoutRoute
6069 '/_authenticated/account' : typeof AuthenticatedAccountRoute
6170 '/api/auth/callback' : typeof ApiAuthCallbackRoute
6271}
6372export interface FileRouteTypes {
6473 fileRoutesByFullPath : FileRoutesByFullPath
65- fullPaths : '/' | '/logout' | '/account' | '/api/auth/callback'
74+ fullPaths : '/' | '/client' | '/ logout' | '/account' | '/api/auth/callback'
6675 fileRoutesByTo : FileRoutesByTo
67- to : '/' | '/logout' | '/account' | '/api/auth/callback'
76+ to : '/' | '/client' | '/ logout' | '/account' | '/api/auth/callback'
6877 id :
6978 | '__root__'
7079 | '/'
7180 | '/_authenticated'
81+ | '/client'
7282 | '/logout'
7383 | '/_authenticated/account'
7484 | '/api/auth/callback'
@@ -77,6 +87,7 @@ export interface FileRouteTypes {
7787export interface RootRouteChildren {
7888 IndexRoute : typeof IndexRoute
7989 AuthenticatedRoute : typeof AuthenticatedRouteWithChildren
90+ ClientRoute : typeof ClientRoute
8091 LogoutRoute : typeof LogoutRoute
8192 ApiAuthCallbackRoute : typeof ApiAuthCallbackRoute
8293}
@@ -90,6 +101,13 @@ declare module '@tanstack/react-router' {
90101 preLoaderRoute : typeof LogoutRouteImport
91102 parentRoute : typeof rootRouteImport
92103 }
104+ '/client' : {
105+ id : '/client'
106+ path : '/client'
107+ fullPath : '/client'
108+ preLoaderRoute : typeof ClientRouteImport
109+ parentRoute : typeof rootRouteImport
110+ }
93111 '/_authenticated' : {
94112 id : '/_authenticated'
95113 path : ''
@@ -136,6 +154,7 @@ const AuthenticatedRouteWithChildren = AuthenticatedRoute._addFileChildren(
136154const rootRouteChildren : RootRouteChildren = {
137155 IndexRoute : IndexRoute ,
138156 AuthenticatedRoute : AuthenticatedRouteWithChildren ,
157+ ClientRoute : ClientRoute ,
139158 LogoutRoute : LogoutRoute ,
140159 ApiAuthCallbackRoute : ApiAuthCallbackRoute ,
141160}
@@ -144,10 +163,11 @@ export const routeTree = rootRouteImport
144163 . _addFileTypes < FileRouteTypes > ( )
145164
146165import type { getRouter } from './router.tsx'
147- import type { createStart } from '@tanstack/react- start'
166+ import type { startInstance } from './ start.ts '
148167declare module '@tanstack/react-start' {
149168 interface Register {
150169 ssr : true
151170 router : Awaited < ReturnType < typeof getRouter > >
171+ config : Awaited < ReturnType < typeof startInstance . getOptions > >
152172 }
153173}
0 commit comments