Open History to see the last commit
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 ErrorRouteImport } from './routes/error'
14import { Route as PostsRouteRouteImport } from './routes/posts/route'
15import { Route as PostsIndexRouteImport } from './routes/posts/index'
16import { Route as PostsPostIdRouteImport } from './routes/posts/$postId'
17β
18const IndexRoute = IndexRouteImport.update({
19 id: '/',
20 path: '/',
21 getParentRoute: () => rootRouteImport,
22} as any)
23const ErrorRoute = ErrorRouteImport.update({
24 id: '/error',
25 path: '/error',
26 getParentRoute: () => rootRouteImport,
27} as any)
28const PostsRouteRoute = PostsRouteRouteImport.update({
29 id: '/posts',
30 path: '/posts',
31 getParentRoute: () => rootRouteImport,
32} as any)
33const PostsIndexRoute = PostsIndexRouteImport.update({
34 id: '/',
35 path: '/',
36 getParentRoute: () => PostsRouteRoute,
37} as any)
38const PostsPostIdRoute = PostsPostIdRouteImport.update({
39 id: '/$postId',
40 path: '/$postId',
41 getParentRoute: () => PostsRouteRoute,
42} as any)
43β
44export interface FileRoutesByFullPath {
45 '/': typeof IndexRoute
46 '/posts': typeof PostsRouteRouteWithChildren
47 '/error': typeof ErrorRoute
48 '/posts/$postId': typeof PostsPostIdRoute
49 '/posts/': typeof PostsIndexRoute
50}
51export interface FileRoutesByTo {
52 '/': typeof IndexRoute
53 '/error': typeof ErrorRoute
54 '/posts/$postId': typeof PostsPostIdRoute
55 '/posts': typeof PostsIndexRoute
56}
57export interface FileRoutesById {
58 __root__: typeof rootRouteImport
59 '/': typeof IndexRoute
60 '/posts': typeof PostsRouteRouteWithChildren
61 '/error': typeof ErrorRoute
62 '/posts/$postId': typeof PostsPostIdRoute
63 '/posts/': typeof PostsIndexRoute
64}
65export interface FileRouteTypes {
66 fileRoutesByFullPath: FileRoutesByFullPath
67 fullPaths: '/' | '/posts' | '/error' | '/posts/$postId' | '/posts/'
68 fileRoutesByTo: FileRoutesByTo
69 to: '/' | '/error' | '/posts/$postId' | '/posts'
70 id: '__root__' | '/' | '/posts' | '/error' | '/posts/$postId' | '/posts/'
71 fileRoutesById: FileRoutesById
72}
73export interface RootRouteChildren {
74 IndexRoute: typeof IndexRoute
75 PostsRouteRoute: typeof PostsRouteRouteWithChildren
76 ErrorRoute: typeof ErrorRoute
77}
78β
79declare module '@tanstack/react-router' {
80 interface FileRoutesByPath {
81 '/': {
82 id: '/'
83 path: '/'
84 fullPath: '/'
85 preLoaderRoute: typeof IndexRouteImport
86 parentRoute: typeof rootRouteImport
87 }
88 '/error': {
89 id: '/error'
90 path: '/error'
91 fullPath: '/error'
92 preLoaderRoute: typeof ErrorRouteImport
93 parentRoute: typeof rootRouteImport
94 }
95 '/posts': {
96 id: '/posts'
97 path: '/posts'
98 fullPath: '/posts'
99 preLoaderRoute: typeof PostsRouteRouteImport
100 parentRoute: typeof rootRouteImport
101 }
102 '/posts/': {
103 id: '/posts/'
104 path: '/'
105 fullPath: '/posts/'
106 preLoaderRoute: typeof PostsIndexRouteImport
107 parentRoute: typeof PostsRouteRoute
108 }
109 '/posts/$postId': {
110 id: '/posts/$postId'
111 path: '/$postId'
112 fullPath: '/posts/$postId'
113 preLoaderRoute: typeof PostsPostIdRouteImport
114 parentRoute: typeof PostsRouteRoute
115 }
116 }
117}
118β
119interface PostsRouteRouteChildren {
120 PostsPostIdRoute: typeof PostsPostIdRoute
121 PostsIndexRoute: typeof PostsIndexRoute
122}
123β
124const PostsRouteRouteChildren: PostsRouteRouteChildren = {
125 PostsPostIdRoute: PostsPostIdRoute,
126 PostsIndexRoute: PostsIndexRoute,
127}
128β
129const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
130 PostsRouteRouteChildren,
131)
132β
133const rootRouteChildren: RootRouteChildren = {
134 IndexRoute: IndexRoute,
135 PostsRouteRoute: PostsRouteRouteWithChildren,
136 ErrorRoute: ErrorRoute,
137}
138export const routeTree = rootRouteImport
139 ._addFileChildren(rootRouteChildren)
140 ._addFileTypes<FileRouteTypes>()