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

routeTree.gen.ts

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