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

routeTree.gen.ts

129 lines3.6 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 PostsRouteImport } from './routes/posts'
14import { Route as RawStreamRouteImport } from './routes/raw-stream'
15import { Route as PostsIndexRouteImport } from './routes/posts.index'
16​
17const IndexRoute = IndexRouteImport.update({
18 id: '/',
19 path: '/',
20 getParentRoute: () => rootRouteImport,
21} as any)
22const PostsRoute = PostsRouteImport.update({
23 id: '/posts',
24 path: '/posts',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const RawStreamRoute = RawStreamRouteImport.update({
28 id: '/raw-stream',
29 path: '/raw-stream',
30 getParentRoute: () => rootRouteImport,
31} as any)
32const PostsIndexRoute = PostsIndexRouteImport.update({
33 id: '/',
34 path: '/',
35 getParentRoute: () => PostsRoute,
36} as any)
37​
38export interface FileRoutesByFullPath {
39 '/': typeof IndexRoute
40 '/posts': typeof PostsRouteWithChildren
41 '/raw-stream': typeof RawStreamRoute
42 '/posts/': typeof PostsIndexRoute
44export interface FileRoutesByTo {
45 '/': typeof IndexRoute
46 '/raw-stream': typeof RawStreamRoute
47 '/posts': typeof PostsIndexRoute
49export interface FileRoutesById {
50 __root__: typeof rootRouteImport
51 '/': typeof IndexRoute
52 '/posts': typeof PostsRouteWithChildren
53 '/raw-stream': typeof RawStreamRoute
54 '/posts/': typeof PostsIndexRoute
56export interface FileRouteTypes {
57 fileRoutesByFullPath: FileRoutesByFullPath
58 fullPaths: '/' | '/posts' | '/raw-stream' | '/posts/'
59 fileRoutesByTo: FileRoutesByTo
60 to: '/' | '/raw-stream' | '/posts'
61 id: '__root__' | '/' | '/posts' | '/raw-stream' | '/posts/'
62 fileRoutesById: FileRoutesById
64export interface RootRouteChildren {
65 IndexRoute: typeof IndexRoute
66 PostsRoute: typeof PostsRouteWithChildren
67 RawStreamRoute: typeof RawStreamRoute
69​
70declare module '@tanstack/react-router' {
71 interface FileRoutesByPath {
72 '/': {
73 id: '/'
74 path: '/'
75 fullPath: '/'
76 preLoaderRoute: typeof IndexRouteImport
77 parentRoute: typeof rootRouteImport
78 }
79 '/posts': {
80 id: '/posts'
81 path: '/posts'
82 fullPath: '/posts'
83 preLoaderRoute: typeof PostsRouteImport
84 parentRoute: typeof rootRouteImport
85 }
86 '/raw-stream': {
87 id: '/raw-stream'
88 path: '/raw-stream'
89 fullPath: '/raw-stream'
90 preLoaderRoute: typeof RawStreamRouteImport
91 parentRoute: typeof rootRouteImport
92 }
93 '/posts/': {
94 id: '/posts/'
95 path: '/'
96 fullPath: '/posts/'
97 preLoaderRoute: typeof PostsIndexRouteImport
98 parentRoute: typeof PostsRoute
99 }
100 }
102​
103interface PostsRouteChildren {
104 PostsIndexRoute: typeof PostsIndexRoute
106​
107const PostsRouteChildren: PostsRouteChildren = {
108 PostsIndexRoute: PostsIndexRoute,
110​
111const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
112​
113const rootRouteChildren: RootRouteChildren = {
114 IndexRoute: IndexRoute,
115 PostsRoute: PostsRouteWithChildren,
116 RawStreamRoute: RawStreamRoute,
118export const routeTree = rootRouteImport
119 ._addFileChildren(rootRouteChildren)
120 ._addFileTypes<FileRouteTypes>()
121​
122import type { getRouter } from './router.tsx'
123import type { createStart } from '@tanstack/react-start'
124declare module '@tanstack/react-start' {
125 interface Register {
126 ssr: true
127 router: Awaited<ReturnType<typeof getRouter>>
128 }