Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

routeTree.gen.ts

95 lines2.9 KB

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 IndexRouteImport } from './routes/index'
13import { Route as PostsSlugRouteImport } from './routes/posts.$slug'
14import { Route as CategoryCategoryRouteImport } from './routes/category.$category'
15​
16const IndexRoute = IndexRouteImport.update({
17 id: '/',
18 path: '/',
19 getParentRoute: () => rootRouteImport,
20} as any)
21const PostsSlugRoute = PostsSlugRouteImport.update({
22 id: '/posts/$slug',
23 path: '/posts/$slug',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const CategoryCategoryRoute = CategoryCategoryRouteImport.update({
27 id: '/category/$category',
28 path: '/category/$category',
29 getParentRoute: () => rootRouteImport,
30} as any)
31​
32export interface FileRoutesByFullPath {
33 '/': typeof IndexRoute
34 '/category/$category': typeof CategoryCategoryRoute
35 '/posts/$slug': typeof PostsSlugRoute
37export interface FileRoutesByTo {
38 '/': typeof IndexRoute
39 '/category/$category': typeof CategoryCategoryRoute
40 '/posts/$slug': typeof PostsSlugRoute
42export interface FileRoutesById {
43 __root__: typeof rootRouteImport
44 '/': typeof IndexRoute
45 '/category/$category': typeof CategoryCategoryRoute
46 '/posts/$slug': typeof PostsSlugRoute
48export interface FileRouteTypes {
49 fileRoutesByFullPath: FileRoutesByFullPath
50 fullPaths: '/' | '/category/$category' | '/posts/$slug'
51 fileRoutesByTo: FileRoutesByTo
52 to: '/' | '/category/$category' | '/posts/$slug'
53 id: '__root__' | '/' | '/category/$category' | '/posts/$slug'
54 fileRoutesById: FileRoutesById
56export interface RootRouteChildren {
57 IndexRoute: typeof IndexRoute
58 CategoryCategoryRoute: typeof CategoryCategoryRoute
59 PostsSlugRoute: typeof PostsSlugRoute
61​
62declare module '@tanstack/react-router' {
63 interface FileRoutesByPath {
64 '/': {
65 id: '/'
66 path: '/'
67 fullPath: '/'
68 preLoaderRoute: typeof IndexRouteImport
69 parentRoute: typeof rootRouteImport
70 }
71 '/posts/$slug': {
72 id: '/posts/$slug'
73 path: '/posts/$slug'
74 fullPath: '/posts/$slug'
75 preLoaderRoute: typeof PostsSlugRouteImport
76 parentRoute: typeof rootRouteImport
77 }
78 '/category/$category': {
79 id: '/category/$category'
80 path: '/category/$category'
81 fullPath: '/category/$category'
82 preLoaderRoute: typeof CategoryCategoryRouteImport
83 parentRoute: typeof rootRouteImport
84 }
85 }
87​
88const rootRouteChildren: RootRouteChildren = {
89 IndexRoute: IndexRoute,
90 CategoryCategoryRoute: CategoryCategoryRoute,
91 PostsSlugRoute: PostsSlugRoute,
93export const routeTree = rootRouteImport
94 ._addFileChildren(rootRouteChildren)
95 ._addFileTypes<FileRouteTypes>()