diff --git a/src/client/routeTree.gen.ts b/src/client/routeTree.gen.ts index 50cbc58..2cebe4c 100644 --- a/src/client/routeTree.gen.ts +++ b/src/client/routeTree.gen.ts @@ -10,9 +10,9 @@ import { Route as rootRouteImport } from './routes/__root' import { Route as IndexRouteImport } from './routes/index' -import { Route as ThreadsThreadIdRouteImport } from './routes/threads/$threadId' -import { Route as CollectionIndexRouteImport } from './routes/collection/index' import { Route as SetupsIndexRouteImport } from './routes/setups/index' +import { Route as CollectionIndexRouteImport } from './routes/collection/index' +import { Route as ThreadsThreadIdRouteImport } from './routes/threads/$threadId' import { Route as SetupsSetupIdRouteImport } from './routes/setups/$setupId' const IndexRoute = IndexRouteImport.update({ @@ -20,9 +20,9 @@ const IndexRoute = IndexRouteImport.update({ path: '/', getParentRoute: () => rootRouteImport, } as any) -const ThreadsThreadIdRoute = ThreadsThreadIdRouteImport.update({ - id: '/threads/$threadId', - path: '/threads/$threadId', +const SetupsIndexRoute = SetupsIndexRouteImport.update({ + id: '/setups/', + path: '/setups/', getParentRoute: () => rootRouteImport, } as any) const CollectionIndexRoute = CollectionIndexRouteImport.update({ @@ -30,9 +30,9 @@ const CollectionIndexRoute = CollectionIndexRouteImport.update({ path: '/collection/', getParentRoute: () => rootRouteImport, } as any) -const SetupsIndexRoute = SetupsIndexRouteImport.update({ - id: '/setups/', - path: '/setups/', +const ThreadsThreadIdRoute = ThreadsThreadIdRouteImport.update({ + id: '/threads/$threadId', + path: '/threads/$threadId', getParentRoute: () => rootRouteImport, } as any) const SetupsSetupIdRoute = SetupsSetupIdRouteImport.update({ @@ -43,40 +43,56 @@ const SetupsSetupIdRoute = SetupsSetupIdRouteImport.update({ export interface FileRoutesByFullPath { '/': typeof IndexRoute - '/threads/$threadId': typeof ThreadsThreadIdRoute - '/collection': typeof CollectionIndexRoute - '/setups': typeof SetupsIndexRoute '/setups/$setupId': typeof SetupsSetupIdRoute + '/threads/$threadId': typeof ThreadsThreadIdRoute + '/collection/': typeof CollectionIndexRoute + '/setups/': typeof SetupsIndexRoute } export interface FileRoutesByTo { '/': typeof IndexRoute + '/setups/$setupId': typeof SetupsSetupIdRoute '/threads/$threadId': typeof ThreadsThreadIdRoute '/collection': typeof CollectionIndexRoute '/setups': typeof SetupsIndexRoute - '/setups/$setupId': typeof SetupsSetupIdRoute } export interface FileRoutesById { __root__: typeof rootRouteImport '/': typeof IndexRoute + '/setups/$setupId': typeof SetupsSetupIdRoute '/threads/$threadId': typeof ThreadsThreadIdRoute '/collection/': typeof CollectionIndexRoute '/setups/': typeof SetupsIndexRoute - '/setups/$setupId': typeof SetupsSetupIdRoute } export interface FileRouteTypes { fileRoutesByFullPath: FileRoutesByFullPath - fullPaths: '/' | '/threads/$threadId' | '/collection' | '/setups' | '/setups/$setupId' + fullPaths: + | '/' + | '/setups/$setupId' + | '/threads/$threadId' + | '/collection/' + | '/setups/' fileRoutesByTo: FileRoutesByTo - to: '/' | '/threads/$threadId' | '/collection' | '/setups' | '/setups/$setupId' - id: '__root__' | '/' | '/threads/$threadId' | '/collection/' | '/setups/' | '/setups/$setupId' + to: + | '/' + | '/setups/$setupId' + | '/threads/$threadId' + | '/collection' + | '/setups' + id: + | '__root__' + | '/' + | '/setups/$setupId' + | '/threads/$threadId' + | '/collection/' + | '/setups/' fileRoutesById: FileRoutesById } export interface RootRouteChildren { IndexRoute: typeof IndexRoute + SetupsSetupIdRoute: typeof SetupsSetupIdRoute ThreadsThreadIdRoute: typeof ThreadsThreadIdRoute CollectionIndexRoute: typeof CollectionIndexRoute SetupsIndexRoute: typeof SetupsIndexRoute - SetupsSetupIdRoute: typeof SetupsSetupIdRoute } declare module '@tanstack/react-router' { @@ -88,25 +104,25 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof IndexRouteImport parentRoute: typeof rootRouteImport } - '/threads/$threadId': { - id: '/threads/$threadId' - path: '/threads/$threadId' - fullPath: '/threads/$threadId' - preLoaderRoute: typeof ThreadsThreadIdRouteImport + '/setups/': { + id: '/setups/' + path: '/setups' + fullPath: '/setups/' + preLoaderRoute: typeof SetupsIndexRouteImport parentRoute: typeof rootRouteImport } '/collection/': { id: '/collection/' path: '/collection' - fullPath: '/collection' + fullPath: '/collection/' preLoaderRoute: typeof CollectionIndexRouteImport parentRoute: typeof rootRouteImport } - '/setups/': { - id: '/setups/' - path: '/setups' - fullPath: '/setups' - preLoaderRoute: typeof SetupsIndexRouteImport + '/threads/$threadId': { + id: '/threads/$threadId' + path: '/threads/$threadId' + fullPath: '/threads/$threadId' + preLoaderRoute: typeof ThreadsThreadIdRouteImport parentRoute: typeof rootRouteImport } '/setups/$setupId': { @@ -121,10 +137,10 @@ declare module '@tanstack/react-router' { const rootRouteChildren: RootRouteChildren = { IndexRoute: IndexRoute, + SetupsSetupIdRoute: SetupsSetupIdRoute, ThreadsThreadIdRoute: ThreadsThreadIdRoute, CollectionIndexRoute: CollectionIndexRoute, SetupsIndexRoute: SetupsIndexRoute, - SetupsSetupIdRoute: SetupsSetupIdRoute, } export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren)