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

routeTree.gen.ts

167 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 LoginRouteImport } from './routes/login'
14import { Route as OldNotesRouteImport } from './routes/old-notes'
15import { Route as SavedRouteImport } from './routes/saved'
16import { Route as SitemapDotxmlRouteImport } from './routes/sitemap[.]xml'
17import { Route as PostsSlugRouteImport } from './routes/posts.$slug'
18​
19const IndexRoute = IndexRouteImport.update({
20 id: '/',
21 path: '/',
22 getParentRoute: () => rootRouteImport,
23} as any)
24const LoginRoute = LoginRouteImport.update({
25 id: '/login',
26 path: '/login',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const OldNotesRoute = OldNotesRouteImport.update({
30 id: '/old-notes',
31 path: '/old-notes',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const SavedRoute = SavedRouteImport.update({
35 id: '/saved',
36 path: '/saved',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const SitemapDotxmlRoute = SitemapDotxmlRouteImport.update({
40 id: '/sitemap.xml',
41 path: '/sitemap.xml',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const PostsSlugRoute = PostsSlugRouteImport.update({
45 id: '/posts/$slug',
46 path: '/posts/$slug',
47 getParentRoute: () => rootRouteImport,
48} as any)
49​
50export interface FileRoutesByFullPath {
51 '/': typeof IndexRoute
52 '/login': typeof LoginRoute
53 '/old-notes': typeof OldNotesRoute
54 '/saved': typeof SavedRoute
55 '/sitemap.xml': typeof SitemapDotxmlRoute
56 '/posts/$slug': typeof PostsSlugRoute
58export interface FileRoutesByTo {
59 '/': typeof IndexRoute
60 '/login': typeof LoginRoute
61 '/old-notes': typeof OldNotesRoute
62 '/saved': typeof SavedRoute
63 '/sitemap.xml': typeof SitemapDotxmlRoute
64 '/posts/$slug': typeof PostsSlugRoute
66export interface FileRoutesById {
67 __root__: typeof rootRouteImport
68 '/': typeof IndexRoute
69 '/login': typeof LoginRoute
70 '/old-notes': typeof OldNotesRoute
71 '/saved': typeof SavedRoute
72 '/sitemap.xml': typeof SitemapDotxmlRoute
73 '/posts/$slug': typeof PostsSlugRoute
75export interface FileRouteTypes {
76 fileRoutesByFullPath: FileRoutesByFullPath
77 fullPaths:
78 '/' | '/login' | '/old-notes' | '/saved' | '/sitemap.xml' | '/posts/$slug'
79 fileRoutesByTo: FileRoutesByTo
80 to: '/' | '/login' | '/old-notes' | '/saved' | '/sitemap.xml' | '/posts/$slug'
81 id:
82 | '__root__'
83 | '/'
84 | '/login'
85 | '/old-notes'
86 | '/saved'
87 | '/sitemap.xml'
88 | '/posts/$slug'
89 fileRoutesById: FileRoutesById
91export interface RootRouteChildren {
92 IndexRoute: typeof IndexRoute
93 LoginRoute: typeof LoginRoute
94 OldNotesRoute: typeof OldNotesRoute
95 SavedRoute: typeof SavedRoute
96 SitemapDotxmlRoute: typeof SitemapDotxmlRoute
97 PostsSlugRoute: typeof PostsSlugRoute
99​
100declare module '@tanstack/react-router' {
101 interface FileRoutesByPath {
102 '/': {
103 id: '/'
104 path: '/'
105 fullPath: '/'
106 preLoaderRoute: typeof IndexRouteImport
107 parentRoute: typeof rootRouteImport
108 }
109 '/login': {
110 id: '/login'
111 path: '/login'
112 fullPath: '/login'
113 preLoaderRoute: typeof LoginRouteImport
114 parentRoute: typeof rootRouteImport
115 }
116 '/old-notes': {
117 id: '/old-notes'
118 path: '/old-notes'
119 fullPath: '/old-notes'
120 preLoaderRoute: typeof OldNotesRouteImport
121 parentRoute: typeof rootRouteImport
122 }
123 '/saved': {
124 id: '/saved'
125 path: '/saved'
126 fullPath: '/saved'
127 preLoaderRoute: typeof SavedRouteImport
128 parentRoute: typeof rootRouteImport
129 }
130 '/sitemap.xml': {
131 id: '/sitemap.xml'
132 path: '/sitemap.xml'
133 fullPath: '/sitemap.xml'
134 preLoaderRoute: typeof SitemapDotxmlRouteImport
135 parentRoute: typeof rootRouteImport
136 }
137 '/posts/$slug': {
138 id: '/posts/$slug'
139 path: '/posts/$slug'
140 fullPath: '/posts/$slug'
141 preLoaderRoute: typeof PostsSlugRouteImport
142 parentRoute: typeof rootRouteImport
143 }
144 }
146​
147const rootRouteChildren: RootRouteChildren = {
148 IndexRoute: IndexRoute,
149 LoginRoute: LoginRoute,
150 OldNotesRoute: OldNotesRoute,
151 SavedRoute: SavedRoute,
152 SitemapDotxmlRoute: SitemapDotxmlRoute,
153 PostsSlugRoute: PostsSlugRoute,
155export const routeTree = rootRouteImport
156 ._addFileChildren(rootRouteChildren)
157 ._addFileTypes<FileRouteTypes>()
158​
159import type { getRouter } from './router.tsx'
160import type { startInstance } from './start.ts'
161declare module '@tanstack/react-start' {
162 interface Register {
163 ssr: true
164 router: Awaited<ReturnType<typeof getRouter>>
165 config: Awaited<ReturnType<typeof startInstance.getOptions>>
166 }