-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrouteTree.gen.ts
More file actions
125 lines (115 loc) · 3.7 KB
/
routeTree.gen.ts
File metadata and controls
125 lines (115 loc) · 3.7 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
/* 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 { createServerRootRoute } from '@tanstack/react-start/server'
import { Route as rootRouteImport } from './routes/__root'
import { Route as IndexRouteImport } from './routes/index'
import { ServerRoute as ApiModelsServerRouteImport } from './routes/api/models'
import { ServerRoute as ApiChatServerRouteImport } from './routes/api/chat'
const rootServerRouteImport = createServerRootRoute()
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const ApiModelsServerRoute = ApiModelsServerRouteImport.update({
id: '/api/models',
path: '/api/models',
getParentRoute: () => rootServerRouteImport,
} as any)
const ApiChatServerRoute = ApiChatServerRouteImport.update({
id: '/api/chat',
path: '/api/chat',
getParentRoute: () => rootServerRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/'
fileRoutesByTo: FileRoutesByTo
to: '/'
id: '__root__' | '/'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
}
export interface FileServerRoutesByFullPath {
'/api/chat': typeof ApiChatServerRoute
'/api/models': typeof ApiModelsServerRoute
}
export interface FileServerRoutesByTo {
'/api/chat': typeof ApiChatServerRoute
'/api/models': typeof ApiModelsServerRoute
}
export interface FileServerRoutesById {
__root__: typeof rootServerRouteImport
'/api/chat': typeof ApiChatServerRoute
'/api/models': typeof ApiModelsServerRoute
}
export interface FileServerRouteTypes {
fileServerRoutesByFullPath: FileServerRoutesByFullPath
fullPaths: '/api/chat' | '/api/models'
fileServerRoutesByTo: FileServerRoutesByTo
to: '/api/chat' | '/api/models'
id: '__root__' | '/api/chat' | '/api/models'
fileServerRoutesById: FileServerRoutesById
}
export interface RootServerRouteChildren {
ApiChatServerRoute: typeof ApiChatServerRoute
ApiModelsServerRoute: typeof ApiModelsServerRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
}
}
declare module '@tanstack/react-start/server' {
interface ServerFileRoutesByPath {
'/api/models': {
id: '/api/models'
path: '/api/models'
fullPath: '/api/models'
preLoaderRoute: typeof ApiModelsServerRouteImport
parentRoute: typeof rootServerRouteImport
}
'/api/chat': {
id: '/api/chat'
path: '/api/chat'
fullPath: '/api/chat'
preLoaderRoute: typeof ApiChatServerRouteImport
parentRoute: typeof rootServerRouteImport
}
}
}
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
const rootServerRouteChildren: RootServerRouteChildren = {
ApiChatServerRoute: ApiChatServerRoute,
ApiModelsServerRoute: ApiModelsServerRoute,
}
export const serverRouteTree = rootServerRouteImport
._addFileChildren(rootServerRouteChildren)
._addFileTypes<FileServerRouteTypes>()