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

routeTree.gen.ts

86 lines2.5 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 EmitServerPingRouteImport } from './routes/emit-server-ping'
13import { Route as IndexRouteImport } from './routes/index'
14​
15const EmitServerPingRoute = EmitServerPingRouteImport.update({
16 id: '/emit-server-ping',
17 path: '/emit-server-ping',
18 getParentRoute: () => rootRouteImport,
19} as any)
20const IndexRoute = IndexRouteImport.update({
21 id: '/',
22 path: '/',
23 getParentRoute: () => rootRouteImport,
24} as any)
25​
26export interface FileRoutesByFullPath {
27 '/': typeof IndexRoute
28 '/emit-server-ping': typeof EmitServerPingRoute
30export interface FileRoutesByTo {
31 '/': typeof IndexRoute
32 '/emit-server-ping': typeof EmitServerPingRoute
34export interface FileRoutesById {
35 __root__: typeof rootRouteImport
36 '/': typeof IndexRoute
37 '/emit-server-ping': typeof EmitServerPingRoute
39export interface FileRouteTypes {
40 fileRoutesByFullPath: FileRoutesByFullPath
41 fullPaths: '/' | '/emit-server-ping'
42 fileRoutesByTo: FileRoutesByTo
43 to: '/' | '/emit-server-ping'
44 id: '__root__' | '/' | '/emit-server-ping'
45 fileRoutesById: FileRoutesById
47export interface RootRouteChildren {
48 IndexRoute: typeof IndexRoute
49 EmitServerPingRoute: typeof EmitServerPingRoute
51​
52declare module '@tanstack/react-router' {
53 interface FileRoutesByPath {
54 '/emit-server-ping': {
55 id: '/emit-server-ping'
56 path: '/emit-server-ping'
57 fullPath: '/emit-server-ping'
58 preLoaderRoute: typeof EmitServerPingRouteImport
59 parentRoute: typeof rootRouteImport
60 }
61 '/': {
62 id: '/'
63 path: '/'
64 fullPath: '/'
65 preLoaderRoute: typeof IndexRouteImport
66 parentRoute: typeof rootRouteImport
67 }
68 }
70​
71const rootRouteChildren: RootRouteChildren = {
72 IndexRoute: IndexRoute,
73 EmitServerPingRoute: EmitServerPingRoute,
75export const routeTree = rootRouteImport
76 ._addFileChildren(rootRouteChildren)
77 ._addFileTypes<FileRouteTypes>()
78​
79import type { getRouter } from './router.tsx'
80import type { createStart } from '@tanstack/react-start'
81declare module '@tanstack/react-start' {
82 interface Register {
83 ssr: true
84 router: Awaited<ReturnType<typeof getRouter>>
85 }