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

routeTree.gen.ts

157 lines5.0 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 ContextCollisionRouteImport } from './routes/context-collision'
14import { Route as MultipleServerFunctionsRouteImport } from './routes/multiple-server-functions'
15import { Route as PathnameMiddlewareRouteImport } from './routes/pathname-middleware'
16import { Route as SimpleRouteImport } from './routes/simple'
17​
18const IndexRoute = IndexRouteImport.update({
19 id: '/',
20 path: '/',
21 getParentRoute: () => rootRouteImport,
22} as any)
23const ContextCollisionRoute = ContextCollisionRouteImport.update({
24 id: '/context-collision',
25 path: '/context-collision',
26 getParentRoute: () => rootRouteImport,
27} as any)
28const MultipleServerFunctionsRoute = MultipleServerFunctionsRouteImport.update({
29 id: '/multiple-server-functions',
30 path: '/multiple-server-functions',
31 getParentRoute: () => rootRouteImport,
32} as any)
33const PathnameMiddlewareRoute = PathnameMiddlewareRouteImport.update({
34 id: '/pathname-middleware',
35 path: '/pathname-middleware',
36 getParentRoute: () => rootRouteImport,
37} as any)
38const SimpleRoute = SimpleRouteImport.update({
39 id: '/simple',
40 path: '/simple',
41 getParentRoute: () => rootRouteImport,
42} as any)
43​
44export interface FileRoutesByFullPath {
45 '/': typeof IndexRoute
46 '/context-collision': typeof ContextCollisionRoute
47 '/multiple-server-functions': typeof MultipleServerFunctionsRoute
48 '/pathname-middleware': typeof PathnameMiddlewareRoute
49 '/simple': typeof SimpleRoute
51export interface FileRoutesByTo {
52 '/': typeof IndexRoute
53 '/context-collision': typeof ContextCollisionRoute
54 '/multiple-server-functions': typeof MultipleServerFunctionsRoute
55 '/pathname-middleware': typeof PathnameMiddlewareRoute
56 '/simple': typeof SimpleRoute
58export interface FileRoutesById {
59 __root__: typeof rootRouteImport
60 '/': typeof IndexRoute
61 '/context-collision': typeof ContextCollisionRoute
62 '/multiple-server-functions': typeof MultipleServerFunctionsRoute
63 '/pathname-middleware': typeof PathnameMiddlewareRoute
64 '/simple': typeof SimpleRoute
66export interface FileRouteTypes {
67 fileRoutesByFullPath: FileRoutesByFullPath
68 fullPaths:
69 | '/'
70 | '/context-collision'
71 | '/multiple-server-functions'
72 | '/pathname-middleware'
73 | '/simple'
74 fileRoutesByTo: FileRoutesByTo
75 to:
76 | '/'
77 | '/context-collision'
78 | '/multiple-server-functions'
79 | '/pathname-middleware'
80 | '/simple'
81 id:
82 | '__root__'
83 | '/'
84 | '/context-collision'
85 | '/multiple-server-functions'
86 | '/pathname-middleware'
87 | '/simple'
88 fileRoutesById: FileRoutesById
90export interface RootRouteChildren {
91 IndexRoute: typeof IndexRoute
92 ContextCollisionRoute: typeof ContextCollisionRoute
93 MultipleServerFunctionsRoute: typeof MultipleServerFunctionsRoute
94 PathnameMiddlewareRoute: typeof PathnameMiddlewareRoute
95 SimpleRoute: typeof SimpleRoute
97​
98declare module '@tanstack/react-router' {
99 interface FileRoutesByPath {
100 '/': {
101 id: '/'
102 path: '/'
103 fullPath: '/'
104 preLoaderRoute: typeof IndexRouteImport
105 parentRoute: typeof rootRouteImport
106 }
107 '/context-collision': {
108 id: '/context-collision'
109 path: '/context-collision'
110 fullPath: '/context-collision'
111 preLoaderRoute: typeof ContextCollisionRouteImport
112 parentRoute: typeof rootRouteImport
113 }
114 '/multiple-server-functions': {
115 id: '/multiple-server-functions'
116 path: '/multiple-server-functions'
117 fullPath: '/multiple-server-functions'
118 preLoaderRoute: typeof MultipleServerFunctionsRouteImport
119 parentRoute: typeof rootRouteImport
120 }
121 '/pathname-middleware': {
122 id: '/pathname-middleware'
123 path: '/pathname-middleware'
124 fullPath: '/pathname-middleware'
125 preLoaderRoute: typeof PathnameMiddlewareRouteImport
126 parentRoute: typeof rootRouteImport
127 }
128 '/simple': {
129 id: '/simple'
130 path: '/simple'
131 fullPath: '/simple'
132 preLoaderRoute: typeof SimpleRouteImport
133 parentRoute: typeof rootRouteImport
134 }
135 }
137​
138const rootRouteChildren: RootRouteChildren = {
139 IndexRoute: IndexRoute,
140 ContextCollisionRoute: ContextCollisionRoute,
141 MultipleServerFunctionsRoute: MultipleServerFunctionsRoute,
142 PathnameMiddlewareRoute: PathnameMiddlewareRoute,
143 SimpleRoute: SimpleRoute,
145export const routeTree = rootRouteImport
146 ._addFileChildren(rootRouteChildren)
147 ._addFileTypes<FileRouteTypes>()
148​
149import type { getRouter } from './router.tsx'
150import type { startInstance } from './start.ts'
151declare module '@tanstack/react-start' {
152 interface Register {
153 ssr: true
154 router: Awaited<ReturnType<typeof getRouter>>
155 config: Awaited<ReturnType<typeof startInstance.getOptions>>
156 }