Skip to content

Commit

Permalink
Update to route tree
Browse files Browse the repository at this point in the history
  • Loading branch information
walidkayhan committed Sep 14, 2024
1 parent 29c1a94 commit eb02408
Showing 1 changed file with 6 additions and 47 deletions.
53 changes: 6 additions & 47 deletions src/app/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,53 +80,12 @@ declare module '@tanstack/react-router' {

// Create and export the route tree

interface FileRoutesByFullPath {
'/': typeof IndexLazyRoute
'/configuration': typeof ConfigurationLazyRoute
'/stats': typeof StatsLazyRoute
'/tools': typeof ToolsLazyRoute
}

interface FileRoutesByTo {
'/': typeof IndexLazyRoute
'/configuration': typeof ConfigurationLazyRoute
'/stats': typeof StatsLazyRoute
'/tools': typeof ToolsLazyRoute
}

interface FileRoutesById {
'/': typeof IndexLazyRoute
'/configuration': typeof ConfigurationLazyRoute
'/stats': typeof StatsLazyRoute
'/tools': typeof ToolsLazyRoute
}

interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/configuration' | '/stats' | '/tools'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/configuration' | '/stats' | '/tools'
id: '/' | '/configuration' | '/stats' | '/tools'
fileRoutesById: FileRoutesById
}

interface RootRouteChildren {
IndexLazyRoute: typeof IndexLazyRoute
ConfigurationLazyRoute: typeof ConfigurationLazyRoute
StatsLazyRoute: typeof StatsLazyRoute
ToolsLazyRoute: typeof ToolsLazyRoute
}

const rootRouteChildren: RootRouteChildren = {
IndexLazyRoute: IndexLazyRoute,
ConfigurationLazyRoute: ConfigurationLazyRoute,
StatsLazyRoute: StatsLazyRoute,
ToolsLazyRoute: ToolsLazyRoute,
}

export const routeTree = rootRoute
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
export const routeTree = rootRoute.addChildren({
IndexLazyRoute,
ConfigurationLazyRoute,
StatsLazyRoute,
ToolsLazyRoute,
})

/* prettier-ignore-end */

Expand Down

0 comments on commit eb02408

Please sign in to comment.