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

routeTree.gen.ts

177 lines4.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 ComponentsRouteImport } from './routes/components'
14import { Route as CssRouteImport } from './routes/css'
15import { Route as EnhancedRouteImport } from './routes/enhanced'
16import { Route as ImportedRouteImport } from './routes/imported'
17import { Route as ScrollRestorationRouteImport } from './routes/scroll-restoration'
18​
19const IndexRoute = IndexRouteImport.update({
20 id: '/',
21 path: '/',
22 getParentRoute: () => rootRouteImport,
23} as any)
24const ComponentsRoute = ComponentsRouteImport.update({
25 id: '/components',
26 path: '/components',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const CssRoute = CssRouteImport.update({
30 id: '/css',
31 path: '/css',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const EnhancedRoute = EnhancedRouteImport.update({
35 id: '/enhanced',
36 path: '/enhanced',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const ImportedRoute = ImportedRouteImport.update({
40 id: '/imported',
41 path: '/imported',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const ScrollRestorationRoute = ScrollRestorationRouteImport.update({
45 id: '/scroll-restoration',
46 path: '/scroll-restoration',
47 getParentRoute: () => rootRouteImport,
48} as any)
49​
50export interface FileRoutesByFullPath {
51 '/': typeof IndexRoute
52 '/components': typeof ComponentsRoute
53 '/css': typeof CssRoute
54 '/enhanced': typeof EnhancedRoute
55 '/imported': typeof ImportedRoute
56 '/scroll-restoration': typeof ScrollRestorationRoute
58export interface FileRoutesByTo {
59 '/': typeof IndexRoute
60 '/components': typeof ComponentsRoute
61 '/css': typeof CssRoute
62 '/enhanced': typeof EnhancedRoute
63 '/imported': typeof ImportedRoute
64 '/scroll-restoration': typeof ScrollRestorationRoute
66export interface FileRoutesById {
67 __root__: typeof rootRouteImport
68 '/': typeof IndexRoute
69 '/components': typeof ComponentsRoute
70 '/css': typeof CssRoute
71 '/enhanced': typeof EnhancedRoute
72 '/imported': typeof ImportedRoute
73 '/scroll-restoration': typeof ScrollRestorationRoute
75export interface FileRouteTypes {
76 fileRoutesByFullPath: FileRoutesByFullPath
77 fullPaths:
78 | '/'
79 | '/components'
80 | '/css'
81 | '/enhanced'
82 | '/imported'
83 | '/scroll-restoration'
84 fileRoutesByTo: FileRoutesByTo
85 to:
86 | '/'
87 | '/components'
88 | '/css'
89 | '/enhanced'
90 | '/imported'
91 | '/scroll-restoration'
92 id:
93 | '__root__'
94 | '/'
95 | '/components'
96 | '/css'
97 | '/enhanced'
98 | '/imported'
99 | '/scroll-restoration'
100 fileRoutesById: FileRoutesById
102export interface RootRouteChildren {
103 IndexRoute: typeof IndexRoute
104 ComponentsRoute: typeof ComponentsRoute
105 CssRoute: typeof CssRoute
106 EnhancedRoute: typeof EnhancedRoute
107 ImportedRoute: typeof ImportedRoute
108 ScrollRestorationRoute: typeof ScrollRestorationRoute
110​
111declare module '@tanstack/react-router' {
112 interface FileRoutesByPath {
113 '/': {
114 id: '/'
115 path: '/'
116 fullPath: '/'
117 preLoaderRoute: typeof IndexRouteImport
118 parentRoute: typeof rootRouteImport
119 }
120 '/components': {
121 id: '/components'
122 path: '/components'
123 fullPath: '/components'
124 preLoaderRoute: typeof ComponentsRouteImport
125 parentRoute: typeof rootRouteImport
126 }
127 '/css': {
128 id: '/css'
129 path: '/css'
130 fullPath: '/css'
131 preLoaderRoute: typeof CssRouteImport
132 parentRoute: typeof rootRouteImport
133 }
134 '/enhanced': {
135 id: '/enhanced'
136 path: '/enhanced'
137 fullPath: '/enhanced'
138 preLoaderRoute: typeof EnhancedRouteImport
139 parentRoute: typeof rootRouteImport
140 }
141 '/imported': {
142 id: '/imported'
143 path: '/imported'
144 fullPath: '/imported'
145 preLoaderRoute: typeof ImportedRouteImport
146 parentRoute: typeof rootRouteImport
147 }
148 '/scroll-restoration': {
149 id: '/scroll-restoration'
150 path: '/scroll-restoration'
151 fullPath: '/scroll-restoration'
152 preLoaderRoute: typeof ScrollRestorationRouteImport
153 parentRoute: typeof rootRouteImport
154 }
155 }
157​
158const rootRouteChildren: RootRouteChildren = {
159 IndexRoute: IndexRoute,
160 ComponentsRoute: ComponentsRoute,
161 CssRoute: CssRoute,
162 EnhancedRoute: EnhancedRoute,
163 ImportedRoute: ImportedRoute,
164 ScrollRestorationRoute: ScrollRestorationRoute,
166export const routeTree = rootRouteImport
167 ._addFileChildren(rootRouteChildren)
168 ._addFileTypes<FileRouteTypes>()
169​
170import type { getRouter } from './router.tsx'
171import type { createStart } from '@tanstack/react-start'
172declare module '@tanstack/react-start' {
173 interface Register {
174 ssr: true
175 router: Awaited<ReturnType<typeof getRouter>>
176 }