-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouteTree.gen.ts
More file actions
132 lines (120 loc) · 3.86 KB
/
Copy pathrouteTree.gen.ts
File metadata and controls
132 lines (120 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file was automatically generated by TanStack Router.
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
import { Route as rootRouteImport } from './routes/__root'
import { Route as AppRouteImport } from './routes/_app'
import { Route as AppIndexRouteImport } from './routes/_app/index'
import { Route as ApiRunSseRouteImport } from './routes/api/run-sse'
import { Route as AppSessionSessionIdRouteImport } from './routes/_app/session.$sessionId'
const AppRoute = AppRouteImport.update({
id: '/_app',
getParentRoute: () => rootRouteImport,
} as any)
const AppIndexRoute = AppIndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => AppRoute,
} as any)
const ApiRunSseRoute = ApiRunSseRouteImport.update({
id: '/api/run-sse',
path: '/api/run-sse',
getParentRoute: () => rootRouteImport,
} as any)
const AppSessionSessionIdRoute = AppSessionSessionIdRouteImport.update({
id: '/session/$sessionId',
path: '/session/$sessionId',
getParentRoute: () => AppRoute,
} as any)
export interface FileRoutesByFullPath {
'/': typeof AppIndexRoute
'/api/run-sse': typeof ApiRunSseRoute
'/session/$sessionId': typeof AppSessionSessionIdRoute
}
export interface FileRoutesByTo {
'/api/run-sse': typeof ApiRunSseRoute
'/': typeof AppIndexRoute
'/session/$sessionId': typeof AppSessionSessionIdRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/_app': typeof AppRouteWithChildren
'/api/run-sse': typeof ApiRunSseRoute
'/_app/': typeof AppIndexRoute
'/_app/session/$sessionId': typeof AppSessionSessionIdRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/api/run-sse' | '/session/$sessionId'
fileRoutesByTo: FileRoutesByTo
to: '/api/run-sse' | '/' | '/session/$sessionId'
id:
| '__root__'
| '/_app'
| '/api/run-sse'
| '/_app/'
| '/_app/session/$sessionId'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
AppRoute: typeof AppRouteWithChildren
ApiRunSseRoute: typeof ApiRunSseRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/_app': {
id: '/_app'
path: ''
fullPath: '/'
preLoaderRoute: typeof AppRouteImport
parentRoute: typeof rootRouteImport
}
'/_app/': {
id: '/_app/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof AppIndexRouteImport
parentRoute: typeof AppRoute
}
'/api/run-sse': {
id: '/api/run-sse'
path: '/api/run-sse'
fullPath: '/api/run-sse'
preLoaderRoute: typeof ApiRunSseRouteImport
parentRoute: typeof rootRouteImport
}
'/_app/session/$sessionId': {
id: '/_app/session/$sessionId'
path: '/session/$sessionId'
fullPath: '/session/$sessionId'
preLoaderRoute: typeof AppSessionSessionIdRouteImport
parentRoute: typeof AppRoute
}
}
}
interface AppRouteChildren {
AppIndexRoute: typeof AppIndexRoute
AppSessionSessionIdRoute: typeof AppSessionSessionIdRoute
}
const AppRouteChildren: AppRouteChildren = {
AppIndexRoute: AppIndexRoute,
AppSessionSessionIdRoute: AppSessionSessionIdRoute,
}
const AppRouteWithChildren = AppRoute._addFileChildren(AppRouteChildren)
const rootRouteChildren: RootRouteChildren = {
AppRoute: AppRouteWithChildren,
ApiRunSseRoute: ApiRunSseRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
import type { getRouter } from './router.tsx'
import type { createStart } from '@tanstack/react-start'
declare module '@tanstack/react-start' {
interface Register {
ssr: true
router: Awaited<ReturnType<typeof getRouter>>
}
}