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

routeTree.gen.ts

171 lines4.8 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 ExploreRouteImport } from './routes/explore'
14import { Route as HowItWorksRouteImport } from './routes/how-it-works'
15import { Route as PostsRouteRouteImport } from './routes/posts.route'
16import { Route as PostsIndexRouteImport } from './routes/posts.index'
17import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
18​
19const IndexRoute = IndexRouteImport.update({
20 id: '/',
21 path: '/',
22 getParentRoute: () => rootRouteImport,
23} as any)
24const ExploreRoute = ExploreRouteImport.update({
25 id: '/explore',
26 path: '/explore',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const HowItWorksRoute = HowItWorksRouteImport.update({
30 id: '/how-it-works',
31 path: '/how-it-works',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const PostsRouteRoute = PostsRouteRouteImport.update({
35 id: '/posts',
36 path: '/posts',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const PostsIndexRoute = PostsIndexRouteImport.update({
40 id: '/',
41 path: '/',
42 getParentRoute: () => PostsRouteRoute,
43} as any)
44const PostsPostIdRoute = PostsPostIdRouteImport.update({
45 id: '/$postId',
46 path: '/$postId',
47 getParentRoute: () => PostsRouteRoute,
48} as any)
49​
50export interface FileRoutesByFullPath {
51 '/': typeof IndexRoute
52 '/posts': typeof PostsRouteRouteWithChildren
53 '/explore': typeof ExploreRoute
54 '/how-it-works': typeof HowItWorksRoute
55 '/posts/$postId': typeof PostsPostIdRoute
56 '/posts/': typeof PostsIndexRoute
58export interface FileRoutesByTo {
59 '/': typeof IndexRoute
60 '/explore': typeof ExploreRoute
61 '/how-it-works': typeof HowItWorksRoute
62 '/posts/$postId': typeof PostsPostIdRoute
63 '/posts': typeof PostsIndexRoute
65export interface FileRoutesById {
66 __root__: typeof rootRouteImport
67 '/': typeof IndexRoute
68 '/posts': typeof PostsRouteRouteWithChildren
69 '/explore': typeof ExploreRoute
70 '/how-it-works': typeof HowItWorksRoute
71 '/posts/$postId': typeof PostsPostIdRoute
72 '/posts/': typeof PostsIndexRoute
74export interface FileRouteTypes {
75 fileRoutesByFullPath: FileRoutesByFullPath
76 fullPaths:
77 | '/'
78 | '/posts'
79 | '/explore'
80 | '/how-it-works'
81 | '/posts/$postId'
82 | '/posts/'
83 fileRoutesByTo: FileRoutesByTo
84 to: '/' | '/explore' | '/how-it-works' | '/posts/$postId' | '/posts'
85 id:
86 | '__root__'
87 | '/'
88 | '/posts'
89 | '/explore'
90 | '/how-it-works'
91 | '/posts/$postId'
92 | '/posts/'
93 fileRoutesById: FileRoutesById
95export interface RootRouteChildren {
96 IndexRoute: typeof IndexRoute
97 PostsRouteRoute: typeof PostsRouteRouteWithChildren
98 ExploreRoute: typeof ExploreRoute
99 HowItWorksRoute: typeof HowItWorksRoute
101​
102declare module '@tanstack/solid-router' {
103 interface FileRoutesByPath {
104 '/': {
105 id: '/'
106 path: '/'
107 fullPath: '/'
108 preLoaderRoute: typeof IndexRouteImport
109 parentRoute: typeof rootRouteImport
110 }
111 '/explore': {
112 id: '/explore'
113 path: '/explore'
114 fullPath: '/explore'
115 preLoaderRoute: typeof ExploreRouteImport
116 parentRoute: typeof rootRouteImport
117 }
118 '/how-it-works': {
119 id: '/how-it-works'
120 path: '/how-it-works'
121 fullPath: '/how-it-works'
122 preLoaderRoute: typeof HowItWorksRouteImport
123 parentRoute: typeof rootRouteImport
124 }
125 '/posts': {
126 id: '/posts'
127 path: '/posts'
128 fullPath: '/posts'
129 preLoaderRoute: typeof PostsRouteRouteImport
130 parentRoute: typeof rootRouteImport
131 }
132 '/posts/': {
133 id: '/posts/'
134 path: '/'
135 fullPath: '/posts/'
136 preLoaderRoute: typeof PostsIndexRouteImport
137 parentRoute: typeof PostsRouteRoute
138 }
139 '/posts/$postId': {
140 id: '/posts/$postId'
141 path: '/$postId'
142 fullPath: '/posts/$postId'
143 preLoaderRoute: typeof PostsPostIdRouteImport
144 parentRoute: typeof PostsRouteRoute
145 }
146 }
148​
149interface PostsRouteRouteChildren {
150 PostsPostIdRoute: typeof PostsPostIdRoute
151 PostsIndexRoute: typeof PostsIndexRoute
153​
154const PostsRouteRouteChildren: PostsRouteRouteChildren = {
155 PostsPostIdRoute: PostsPostIdRoute,
156 PostsIndexRoute: PostsIndexRoute,
158​
159const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
160 PostsRouteRouteChildren,
162​
163const rootRouteChildren: RootRouteChildren = {
164 IndexRoute: IndexRoute,
165 PostsRouteRoute: PostsRouteRouteWithChildren,
166 ExploreRoute: ExploreRoute,
167 HowItWorksRoute: HowItWorksRoute,
169export const routeTree = rootRouteImport
170 ._addFileChildren(rootRouteChildren)
171 ._addFileTypes<FileRouteTypes>()