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

routeTree.gen.ts

104 lines3.3 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 ApiProductChatRouteImport } from './routes/api.product-chat'
14import { Route as ProductsProductIdRouteImport } from './routes/products/$productId'
15​
16const IndexRoute = IndexRouteImport.update({
17 id: '/',
18 path: '/',
19 getParentRoute: () => rootRouteImport,
20} as any)
21const ApiProductChatRoute = ApiProductChatRouteImport.update({
22 id: '/api/product-chat',
23 path: '/api/product-chat',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const ProductsProductIdRoute = ProductsProductIdRouteImport.update({
27 id: '/products/$productId',
28 path: '/products/$productId',
29 getParentRoute: () => rootRouteImport,
30} as any)
31​
32export interface FileRoutesByFullPath {
33 '/': typeof IndexRoute
34 '/api/product-chat': typeof ApiProductChatRoute
35 '/products/$productId': typeof ProductsProductIdRoute
37export interface FileRoutesByTo {
38 '/': typeof IndexRoute
39 '/api/product-chat': typeof ApiProductChatRoute
40 '/products/$productId': typeof ProductsProductIdRoute
42export interface FileRoutesById {
43 __root__: typeof rootRouteImport
44 '/': typeof IndexRoute
45 '/api/product-chat': typeof ApiProductChatRoute
46 '/products/$productId': typeof ProductsProductIdRoute
48export interface FileRouteTypes {
49 fileRoutesByFullPath: FileRoutesByFullPath
50 fullPaths: '/' | '/api/product-chat' | '/products/$productId'
51 fileRoutesByTo: FileRoutesByTo
52 to: '/' | '/api/product-chat' | '/products/$productId'
53 id: '__root__' | '/' | '/api/product-chat' | '/products/$productId'
54 fileRoutesById: FileRoutesById
56export interface RootRouteChildren {
57 IndexRoute: typeof IndexRoute
58 ApiProductChatRoute: typeof ApiProductChatRoute
59 ProductsProductIdRoute: typeof ProductsProductIdRoute
61​
62declare module '@tanstack/react-router' {
63 interface FileRoutesByPath {
64 '/': {
65 id: '/'
66 path: '/'
67 fullPath: '/'
68 preLoaderRoute: typeof IndexRouteImport
69 parentRoute: typeof rootRouteImport
70 }
71 '/api/product-chat': {
72 id: '/api/product-chat'
73 path: '/api/product-chat'
74 fullPath: '/api/product-chat'
75 preLoaderRoute: typeof ApiProductChatRouteImport
76 parentRoute: typeof rootRouteImport
77 }
78 '/products/$productId': {
79 id: '/products/$productId'
80 path: '/products/$productId'
81 fullPath: '/products/$productId'
82 preLoaderRoute: typeof ProductsProductIdRouteImport
83 parentRoute: typeof rootRouteImport
84 }
85 }
87​
88const rootRouteChildren: RootRouteChildren = {
89 IndexRoute: IndexRoute,
90 ApiProductChatRoute: ApiProductChatRoute,
91 ProductsProductIdRoute: ProductsProductIdRoute,
93export const routeTree = rootRouteImport
94 ._addFileChildren(rootRouteChildren)
95 ._addFileTypes<FileRouteTypes>()
96​
97import type { getRouter } from './router.tsx'
98import type { createStart } from '@tanstack/react-start'
99declare module '@tanstack/react-start' {
100 interface Register {
101 ssr: true
102 router: Awaited<ReturnType<typeof getRouter>>
103 }