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

routeTree.gen.ts

111 lines2.2 KB

1/* prettier-ignore-start */
2​
3/* eslint-disable */
4​
5// @ts-nocheck
6​
7// noinspection JSUnusedGlobalSymbols
8​
9// This file is auto-generated by TanStack Router
10​
11// Import Routes
12​
13import { Route as rootRoute } from './routes/__root'
14import { Route as AboutImport } from './routes/about'
15import { Route as IndexImport } from './routes/index'
16​
17// Create/Update Routes
18​
19const AboutRoute = AboutImport.update({
20 path: '/about',
21 getParentRoute: () => rootRoute,
22} as any)
23​
24const IndexRoute = IndexImport.update({
25 path: '/',
26 getParentRoute: () => rootRoute,
27} as any)
28​
29// Populate the FileRoutesByPath interface
30​
31declare module '@tanstack/react-router' {
32 interface FileRoutesByPath {
33 '/': {
34 id: '/'
35 path: '/'
36 fullPath: '/'
37 preLoaderRoute: typeof IndexImport
38 parentRoute: typeof rootRoute
39 }
40 '/about': {
41 id: '/about'
42 path: '/about'
43 fullPath: '/about'
44 preLoaderRoute: typeof AboutImport
45 parentRoute: typeof rootRoute
46 }
47 }
49​
50// Create and export the route tree
51​
52export interface FileRoutesByFullPath {
53 '/': typeof IndexRoute
54 '/about': typeof AboutRoute
56​
57export interface FileRoutesByTo {
58 '/': typeof IndexRoute
59 '/about': typeof AboutRoute
61​
62export interface FileRoutesById {
63 __root__: typeof rootRoute
64 '/': typeof IndexRoute
65 '/about': typeof AboutRoute
67​
68export interface FileRouteTypes {
69 fileRoutesByFullPath: FileRoutesByFullPath
70 fullPaths: '/' | '/about'
71 fileRoutesByTo: FileRoutesByTo
72 to: '/' | '/about'
73 id: '__root__' | '/' | '/about'
74 fileRoutesById: FileRoutesById
76​
77export interface RootRouteChildren {
78 IndexRoute: typeof IndexRoute
79 AboutRoute: typeof AboutRoute
81​
82const rootRouteChildren: RootRouteChildren = {
83 IndexRoute: IndexRoute,
84 AboutRoute: AboutRoute,
86​
87export const routeTree = rootRoute
88 ._addFileChildren(rootRouteChildren)
89 ._addFileTypes<FileRouteTypes>()
90​
91/* prettier-ignore-end */
92​
93/* ROUTE_MANIFEST_START
95 "routes": {
96 "__root__": {
97 "filePath": "__root.tsx",
98 "children": [
99 "/",
100 "/about"
101 ]
102 },
103 "/": {
104 "filePath": "index.tsx"
105 },
106 "/about": {
107 "filePath": "about.tsx"
108 }
109 }
111ROUTE_MANIFEST_END */