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 ECommerceRouteImport } from './routes/e-commerce'
14import { Route as LowLevelApiRouteImport } from './routes/low-level-api'
15import { Route as PokemonRouteImport } from './routes/pokemon'
16import { Route as PokemonRscRouteImport } from './routes/pokemon-rsc'
17import { Route as ApiRscRouteImport } from './routes/api/rsc'
18​
19const IndexRoute = IndexRouteImport.update({
20 id: '/',
21 path: '/',
22 getParentRoute: () => rootRouteImport,
23} as any)
24const ECommerceRoute = ECommerceRouteImport.update({
25 id: '/e-commerce',
26 path: '/e-commerce',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const LowLevelApiRoute = LowLevelApiRouteImport.update({
30 id: '/low-level-api',
31 path: '/low-level-api',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const PokemonRoute = PokemonRouteImport.update({
35 id: '/pokemon',
36 path: '/pokemon',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const PokemonRscRoute = PokemonRscRouteImport.update({
40 id: '/pokemon-rsc',
41 path: '/pokemon-rsc',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const ApiRscRoute = ApiRscRouteImport.update({
45 id: '/api/rsc',
46 path: '/api/rsc',
47 getParentRoute: () => rootRouteImport,
48} as any)
49​
50export interface FileRoutesByFullPath {
51 '/': typeof IndexRoute
52 '/e-commerce': typeof ECommerceRoute
53 '/low-level-api': typeof LowLevelApiRoute
54 '/pokemon': typeof PokemonRoute
55 '/pokemon-rsc': typeof PokemonRscRoute
56 '/api/rsc': typeof ApiRscRoute
58export interface FileRoutesByTo {
59 '/': typeof IndexRoute
60 '/e-commerce': typeof ECommerceRoute
61 '/low-level-api': typeof LowLevelApiRoute
62 '/pokemon': typeof PokemonRoute
63 '/pokemon-rsc': typeof PokemonRscRoute
64 '/api/rsc': typeof ApiRscRoute
66export interface FileRoutesById {
67 __root__: typeof rootRouteImport
68 '/': typeof IndexRoute
69 '/e-commerce': typeof ECommerceRoute
70 '/low-level-api': typeof LowLevelApiRoute
71 '/pokemon': typeof PokemonRoute
72 '/pokemon-rsc': typeof PokemonRscRoute
73 '/api/rsc': typeof ApiRscRoute
75export interface FileRouteTypes {
76 fileRoutesByFullPath: FileRoutesByFullPath
77 fullPaths:
78 | '/'
79 | '/e-commerce'
80 | '/low-level-api'
81 | '/pokemon'
82 | '/pokemon-rsc'
83 | '/api/rsc'
84 fileRoutesByTo: FileRoutesByTo
85 to:
86 | '/'
87 | '/e-commerce'
88 | '/low-level-api'
89 | '/pokemon'
90 | '/pokemon-rsc'
91 | '/api/rsc'
92 id:
93 | '__root__'
94 | '/'
95 | '/e-commerce'
96 | '/low-level-api'
97 | '/pokemon'
98 | '/pokemon-rsc'
99 | '/api/rsc'
100 fileRoutesById: FileRoutesById
102export interface RootRouteChildren {
103 IndexRoute: typeof IndexRoute
104 ECommerceRoute: typeof ECommerceRoute
105 LowLevelApiRoute: typeof LowLevelApiRoute
106 PokemonRoute: typeof PokemonRoute
107 PokemonRscRoute: typeof PokemonRscRoute
108 ApiRscRoute: typeof ApiRscRoute
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 '/e-commerce': {
121 id: '/e-commerce'
122 path: '/e-commerce'
123 fullPath: '/e-commerce'
124 preLoaderRoute: typeof ECommerceRouteImport
125 parentRoute: typeof rootRouteImport
126 }
127 '/low-level-api': {
128 id: '/low-level-api'
129 path: '/low-level-api'
130 fullPath: '/low-level-api'
131 preLoaderRoute: typeof LowLevelApiRouteImport
132 parentRoute: typeof rootRouteImport
133 }
134 '/pokemon': {
135 id: '/pokemon'
136 path: '/pokemon'
137 fullPath: '/pokemon'
138 preLoaderRoute: typeof PokemonRouteImport
139 parentRoute: typeof rootRouteImport
140 }
141 '/pokemon-rsc': {
142 id: '/pokemon-rsc'
143 path: '/pokemon-rsc'
144 fullPath: '/pokemon-rsc'
145 preLoaderRoute: typeof PokemonRscRouteImport
146 parentRoute: typeof rootRouteImport
147 }
148 '/api/rsc': {
149 id: '/api/rsc'
150 path: '/api/rsc'
151 fullPath: '/api/rsc'
152 preLoaderRoute: typeof ApiRscRouteImport
153 parentRoute: typeof rootRouteImport
154 }
155 }
157​
158const rootRouteChildren: RootRouteChildren = {
159 IndexRoute: IndexRoute,
160 ECommerceRoute: ECommerceRoute,
161 LowLevelApiRoute: LowLevelApiRoute,
162 PokemonRoute: PokemonRoute,
163 PokemonRscRoute: PokemonRscRoute,
164 ApiRscRoute: ApiRscRoute,
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 }