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

routeTree.gen.ts

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