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

routeTree.gen.ts

111 lines2.4 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​
11// Import Routes
12​
13import { Route as rootRoute } from './routes/__root'
14import { Route as IndexImport } from './routes/index'
15import { Route as DemoMuiImport } from './routes/demo.mui'
16​
17// Create/Update Routes
18​
19const IndexRoute = IndexImport.update({
20 id: '/',
21 path: '/',
22 getParentRoute: () => rootRoute,
23} as any)
24​
25const DemoMuiRoute = DemoMuiImport.update({
26 id: '/demo/mui',
27 path: '/demo/mui',
28 getParentRoute: () => rootRoute,
29} as any)
30​
31// Populate the FileRoutesByPath interface
32​
33declare module '@tanstack/react-router' {
34 interface FileRoutesByPath {
35 '/': {
36 id: '/'
37 path: '/'
38 fullPath: '/'
39 preLoaderRoute: typeof IndexImport
40 parentRoute: typeof rootRoute
41 }
42 '/demo/mui': {
43 id: '/demo/mui'
44 path: '/demo/mui'
45 fullPath: '/demo/mui'
46 preLoaderRoute: typeof DemoMuiImport
47 parentRoute: typeof rootRoute
48 }
49 }
51​
52// Create and export the route tree
53​
54export interface FileRoutesByFullPath {
55 '/': typeof IndexRoute
56 '/demo/mui': typeof DemoMuiRoute
58​
59export interface FileRoutesByTo {
60 '/': typeof IndexRoute
61 '/demo/mui': typeof DemoMuiRoute
63​
64export interface FileRoutesById {
65 __root__: typeof rootRoute
66 '/': typeof IndexRoute
67 '/demo/mui': typeof DemoMuiRoute
69​
70export interface FileRouteTypes {
71 fileRoutesByFullPath: FileRoutesByFullPath
72 fullPaths: '/' | '/demo/mui'
73 fileRoutesByTo: FileRoutesByTo
74 to: '/' | '/demo/mui'
75 id: '__root__' | '/' | '/demo/mui'
76 fileRoutesById: FileRoutesById
78​
79export interface RootRouteChildren {
80 IndexRoute: typeof IndexRoute
81 DemoMuiRoute: typeof DemoMuiRoute
83​
84const rootRouteChildren: RootRouteChildren = {
85 IndexRoute: IndexRoute,
86 DemoMuiRoute: DemoMuiRoute,
88​
89export const routeTree = rootRoute
90 ._addFileChildren(rootRouteChildren)
91 ._addFileTypes<FileRouteTypes>()
92​
93/* ROUTE_MANIFEST_START
95 "routes": {
96 "__root__": {
97 "filePath": "__root.tsx",
98 "children": [
99 "/",
100 "/demo/mui"
101 ]
102 },
103 "/": {
104 "filePath": "index.tsx"
105 },
106 "/demo/mui": {
107 "filePath": "demo.mui.tsx"
108 }
109 }
111ROUTE_MANIFEST_END */