1313import { Route as rootRoute } from './routes/__root'
1414import { Route as UsersImport } from './routes/users'
1515import { Route as StatusImport } from './routes/status'
16+ import { Route as ServerFnsImport } from './routes/server-fns'
1617import { Route as SearchParamsImport } from './routes/search-params'
1718import { Route as RedirectImport } from './routes/redirect'
1819import { Route as PostsImport } from './routes/posts'
@@ -42,6 +43,12 @@ const StatusRoute = StatusImport.update({
4243 getParentRoute : ( ) => rootRoute ,
4344} as any )
4445
46+ const ServerFnsRoute = ServerFnsImport . update ( {
47+ id : '/server-fns' ,
48+ path : '/server-fns' ,
49+ getParentRoute : ( ) => rootRoute ,
50+ } as any )
51+
4552const SearchParamsRoute = SearchParamsImport . update ( {
4653 id : '/search-params' ,
4754 path : '/search-params' ,
@@ -170,6 +177,13 @@ declare module '@tanstack/react-router' {
170177 preLoaderRoute : typeof SearchParamsImport
171178 parentRoute : typeof rootRoute
172179 }
180+ '/server-fns' : {
181+ id : '/server-fns'
182+ path : '/server-fns'
183+ fullPath : '/server-fns'
184+ preLoaderRoute : typeof ServerFnsImport
185+ parentRoute : typeof rootRoute
186+ }
173187 '/status' : {
174188 id : '/status'
175189 path : '/status'
@@ -301,6 +315,7 @@ export interface FileRoutesByFullPath {
301315 '/posts' : typeof PostsRouteWithChildren
302316 '/redirect' : typeof RedirectRoute
303317 '/search-params' : typeof SearchParamsRoute
318+ '/server-fns' : typeof ServerFnsRoute
304319 '/status' : typeof StatusRoute
305320 '/users' : typeof UsersRouteWithChildren
306321 '/posts/$postId' : typeof PostsPostIdRoute
@@ -318,6 +333,7 @@ export interface FileRoutesByTo {
318333 '/deferred' : typeof DeferredRoute
319334 '/redirect' : typeof RedirectRoute
320335 '/search-params' : typeof SearchParamsRoute
336+ '/server-fns' : typeof ServerFnsRoute
321337 '/status' : typeof StatusRoute
322338 '/posts/$postId' : typeof PostsPostIdRoute
323339 '/users/$userId' : typeof UsersUserIdRoute
@@ -336,6 +352,7 @@ export interface FileRoutesById {
336352 '/posts' : typeof PostsRouteWithChildren
337353 '/redirect' : typeof RedirectRoute
338354 '/search-params' : typeof SearchParamsRoute
355+ '/server-fns' : typeof ServerFnsRoute
339356 '/status' : typeof StatusRoute
340357 '/users' : typeof UsersRouteWithChildren
341358 '/_layout/_layout-2' : typeof LayoutLayout2RouteWithChildren
@@ -357,6 +374,7 @@ export interface FileRouteTypes {
357374 | '/posts'
358375 | '/redirect'
359376 | '/search-params'
377+ | '/server-fns'
360378 | '/status'
361379 | '/users'
362380 | '/posts/$postId'
@@ -373,6 +391,7 @@ export interface FileRouteTypes {
373391 | '/deferred'
374392 | '/redirect'
375393 | '/search-params'
394+ | '/server-fns'
376395 | '/status'
377396 | '/posts/$postId'
378397 | '/users/$userId'
@@ -389,6 +408,7 @@ export interface FileRouteTypes {
389408 | '/posts'
390409 | '/redirect'
391410 | '/search-params'
411+ | '/server-fns'
392412 | '/status'
393413 | '/users'
394414 | '/_layout/_layout-2'
@@ -409,6 +429,7 @@ export interface RootRouteChildren {
409429 PostsRoute : typeof PostsRouteWithChildren
410430 RedirectRoute : typeof RedirectRoute
411431 SearchParamsRoute : typeof SearchParamsRoute
432+ ServerFnsRoute : typeof ServerFnsRoute
412433 StatusRoute : typeof StatusRoute
413434 UsersRoute : typeof UsersRouteWithChildren
414435 PostsPostIdDeepRoute : typeof PostsPostIdDeepRoute
@@ -421,6 +442,7 @@ const rootRouteChildren: RootRouteChildren = {
421442 PostsRoute : PostsRouteWithChildren ,
422443 RedirectRoute : RedirectRoute ,
423444 SearchParamsRoute : SearchParamsRoute ,
445+ ServerFnsRoute : ServerFnsRoute ,
424446 StatusRoute : StatusRoute ,
425447 UsersRoute : UsersRouteWithChildren ,
426448 PostsPostIdDeepRoute : PostsPostIdDeepRoute ,
@@ -442,6 +464,7 @@ export const routeTree = rootRoute
442464 "/posts",
443465 "/redirect",
444466 "/search-params",
467+ "/server-fns",
445468 "/status",
446469 "/users",
447470 "/posts_/$postId/deep"
@@ -472,6 +495,9 @@ export const routeTree = rootRoute
472495 "/search-params": {
473496 "filePath": "search-params.tsx"
474497 },
498+ "/server-fns": {
499+ "filePath": "server-fns.tsx"
500+ },
475501 "/status": {
476502 "filePath": "status.tsx"
477503 },
0 commit comments