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

routeTree.gen.ts

187 lines5.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 IndexeddbRouteImport } from './routes/indexeddb'
14import { Route as LocalstorageRouteImport } from './routes/localstorage'
15import { Route as WaSqliteRouteImport } from './routes/wa-sqlite'
16import { Route as ApiTodosRouteImport } from './routes/api/todos'
17import { Route as ApiTodosTodoIdRouteImport } from './routes/api/todos.$todoId'
18​
19const IndexRoute = IndexRouteImport.update({
20 id: '/',
21 path: '/',
22 getParentRoute: () => rootRouteImport,
23} as any)
24const IndexeddbRoute = IndexeddbRouteImport.update({
25 id: '/indexeddb',
26 path: '/indexeddb',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const LocalstorageRoute = LocalstorageRouteImport.update({
30 id: '/localstorage',
31 path: '/localstorage',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const WaSqliteRoute = WaSqliteRouteImport.update({
35 id: '/wa-sqlite',
36 path: '/wa-sqlite',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const ApiTodosRoute = ApiTodosRouteImport.update({
40 id: '/api/todos',
41 path: '/api/todos',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const ApiTodosTodoIdRoute = ApiTodosTodoIdRouteImport.update({
45 id: '/$todoId',
46 path: '/$todoId',
47 getParentRoute: () => ApiTodosRoute,
48} as any)
49​
50export interface FileRoutesByFullPath {
51 '/': typeof IndexRoute
52 '/indexeddb': typeof IndexeddbRoute
53 '/localstorage': typeof LocalstorageRoute
54 '/wa-sqlite': typeof WaSqliteRoute
55 '/api/todos': typeof ApiTodosRouteWithChildren
56 '/api/todos/$todoId': typeof ApiTodosTodoIdRoute
58export interface FileRoutesByTo {
59 '/': typeof IndexRoute
60 '/indexeddb': typeof IndexeddbRoute
61 '/localstorage': typeof LocalstorageRoute
62 '/wa-sqlite': typeof WaSqliteRoute
63 '/api/todos': typeof ApiTodosRouteWithChildren
64 '/api/todos/$todoId': typeof ApiTodosTodoIdRoute
66export interface FileRoutesById {
67 __root__: typeof rootRouteImport
68 '/': typeof IndexRoute
69 '/indexeddb': typeof IndexeddbRoute
70 '/localstorage': typeof LocalstorageRoute
71 '/wa-sqlite': typeof WaSqliteRoute
72 '/api/todos': typeof ApiTodosRouteWithChildren
73 '/api/todos/$todoId': typeof ApiTodosTodoIdRoute
75export interface FileRouteTypes {
76 fileRoutesByFullPath: FileRoutesByFullPath
77 fullPaths:
78 | '/'
79 | '/indexeddb'
80 | '/localstorage'
81 | '/wa-sqlite'
82 | '/api/todos'
83 | '/api/todos/$todoId'
84 fileRoutesByTo: FileRoutesByTo
85 to:
86 | '/'
87 | '/indexeddb'
88 | '/localstorage'
89 | '/wa-sqlite'
90 | '/api/todos'
91 | '/api/todos/$todoId'
92 id:
93 | '__root__'
94 | '/'
95 | '/indexeddb'
96 | '/localstorage'
97 | '/wa-sqlite'
98 | '/api/todos'
99 | '/api/todos/$todoId'
100 fileRoutesById: FileRoutesById
102export interface RootRouteChildren {
103 IndexRoute: typeof IndexRoute
104 IndexeddbRoute: typeof IndexeddbRoute
105 LocalstorageRoute: typeof LocalstorageRoute
106 WaSqliteRoute: typeof WaSqliteRoute
107 ApiTodosRoute: typeof ApiTodosRouteWithChildren
109​
110declare module '@tanstack/react-router' {
111 interface FileRoutesByPath {
112 '/': {
113 id: '/'
114 path: '/'
115 fullPath: '/'
116 preLoaderRoute: typeof IndexRouteImport
117 parentRoute: typeof rootRouteImport
118 }
119 '/indexeddb': {
120 id: '/indexeddb'
121 path: '/indexeddb'
122 fullPath: '/indexeddb'
123 preLoaderRoute: typeof IndexeddbRouteImport
124 parentRoute: typeof rootRouteImport
125 }
126 '/localstorage': {
127 id: '/localstorage'
128 path: '/localstorage'
129 fullPath: '/localstorage'
130 preLoaderRoute: typeof LocalstorageRouteImport
131 parentRoute: typeof rootRouteImport
132 }
133 '/wa-sqlite': {
134 id: '/wa-sqlite'
135 path: '/wa-sqlite'
136 fullPath: '/wa-sqlite'
137 preLoaderRoute: typeof WaSqliteRouteImport
138 parentRoute: typeof rootRouteImport
139 }
140 '/api/todos': {
141 id: '/api/todos'
142 path: '/api/todos'
143 fullPath: '/api/todos'
144 preLoaderRoute: typeof ApiTodosRouteImport
145 parentRoute: typeof rootRouteImport
146 }
147 '/api/todos/$todoId': {
148 id: '/api/todos/$todoId'
149 path: '/$todoId'
150 fullPath: '/api/todos/$todoId'
151 preLoaderRoute: typeof ApiTodosTodoIdRouteImport
152 parentRoute: typeof ApiTodosRoute
153 }
154 }
156​
157interface ApiTodosRouteChildren {
158 ApiTodosTodoIdRoute: typeof ApiTodosTodoIdRoute
160​
161const ApiTodosRouteChildren: ApiTodosRouteChildren = {
162 ApiTodosTodoIdRoute: ApiTodosTodoIdRoute,
164​
165const ApiTodosRouteWithChildren = ApiTodosRoute._addFileChildren(
166 ApiTodosRouteChildren,
168​
169const rootRouteChildren: RootRouteChildren = {
170 IndexRoute: IndexRoute,
171 IndexeddbRoute: IndexeddbRoute,
172 LocalstorageRoute: LocalstorageRoute,
173 WaSqliteRoute: WaSqliteRoute,
174 ApiTodosRoute: ApiTodosRouteWithChildren,
176export const routeTree = rootRouteImport
177 ._addFileChildren(rootRouteChildren)
178 ._addFileTypes<FileRouteTypes>()
179​
180import type { getRouter } from './router.tsx'
181import type { createStart } from '@tanstack/react-start'
182declare module '@tanstack/react-start' {
183 interface Register {
184 ssr: true
185 router: Awaited<ReturnType<typeof getRouter>>
186 }