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

routeTree.gen.ts

192 lines6.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 { createServerRootRoute } from '@tanstack/react-start/server'
12​
13import { Route as rootRouteImport } from './routes/__root'
14import { Route as LoginRouteImport } from './routes/login'
15import { Route as AuthenticatedRouteImport } from './routes/_authenticated'
16import { Route as AuthenticatedIndexRouteImport } from './routes/_authenticated/index'
17import { Route as AuthenticatedProjectProjectIdRouteImport } from './routes/_authenticated/project/$projectId'
18import { ServerRoute as ApiAuthServerRouteImport } from './routes/api/auth'
19import { ServerRoute as ApiTrpcSplatServerRouteImport } from './routes/api/trpc/$'
20​
21const rootServerRouteImport = createServerRootRoute()
22​
23const LoginRoute = LoginRouteImport.update({
24 id: '/login',
25 path: '/login',
26 getParentRoute: () => rootRouteImport,
27} as any)
28const AuthenticatedRoute = AuthenticatedRouteImport.update({
29 id: '/_authenticated',
30 getParentRoute: () => rootRouteImport,
31} as any)
32const AuthenticatedIndexRoute = AuthenticatedIndexRouteImport.update({
33 id: '/',
34 path: '/',
35 getParentRoute: () => AuthenticatedRoute,
36} as any)
37const AuthenticatedProjectProjectIdRoute =
38 AuthenticatedProjectProjectIdRouteImport.update({
39 id: '/project/$projectId',
40 path: '/project/$projectId',
41 getParentRoute: () => AuthenticatedRoute,
42 } as any)
43const ApiAuthServerRoute = ApiAuthServerRouteImport.update({
44 id: '/api/auth',
45 path: '/api/auth',
46 getParentRoute: () => rootServerRouteImport,
47} as any)
48const ApiTrpcSplatServerRoute = ApiTrpcSplatServerRouteImport.update({
49 id: '/api/trpc/$',
50 path: '/api/trpc/$',
51 getParentRoute: () => rootServerRouteImport,
52} as any)
53​
54export interface FileRoutesByFullPath {
55 '/login': typeof LoginRoute
56 '/': typeof AuthenticatedIndexRoute
57 '/project/$projectId': typeof AuthenticatedProjectProjectIdRoute
59export interface FileRoutesByTo {
60 '/login': typeof LoginRoute
61 '/': typeof AuthenticatedIndexRoute
62 '/project/$projectId': typeof AuthenticatedProjectProjectIdRoute
64export interface FileRoutesById {
65 __root__: typeof rootRouteImport
66 '/_authenticated': typeof AuthenticatedRouteWithChildren
67 '/login': typeof LoginRoute
68 '/_authenticated/': typeof AuthenticatedIndexRoute
69 '/_authenticated/project/$projectId': typeof AuthenticatedProjectProjectIdRoute
71export interface FileRouteTypes {
72 fileRoutesByFullPath: FileRoutesByFullPath
73 fullPaths: '/login' | '/' | '/project/$projectId'
74 fileRoutesByTo: FileRoutesByTo
75 to: '/login' | '/' | '/project/$projectId'
76 id:
77 | '__root__'
78 | '/_authenticated'
79 | '/login'
80 | '/_authenticated/'
81 | '/_authenticated/project/$projectId'
82 fileRoutesById: FileRoutesById
84export interface RootRouteChildren {
85 AuthenticatedRoute: typeof AuthenticatedRouteWithChildren
86 LoginRoute: typeof LoginRoute
88export interface FileServerRoutesByFullPath {
89 '/api/auth': typeof ApiAuthServerRoute
90 '/api/trpc/$': typeof ApiTrpcSplatServerRoute
92export interface FileServerRoutesByTo {
93 '/api/auth': typeof ApiAuthServerRoute
94 '/api/trpc/$': typeof ApiTrpcSplatServerRoute
96export interface FileServerRoutesById {
97 __root__: typeof rootServerRouteImport
98 '/api/auth': typeof ApiAuthServerRoute
99 '/api/trpc/$': typeof ApiTrpcSplatServerRoute
101export interface FileServerRouteTypes {
102 fileServerRoutesByFullPath: FileServerRoutesByFullPath
103 fullPaths: '/api/auth' | '/api/trpc/$'
104 fileServerRoutesByTo: FileServerRoutesByTo
105 to: '/api/auth' | '/api/trpc/$'
106 id: '__root__' | '/api/auth' | '/api/trpc/$'
107 fileServerRoutesById: FileServerRoutesById
109export interface RootServerRouteChildren {
110 ApiAuthServerRoute: typeof ApiAuthServerRoute
111 ApiTrpcSplatServerRoute: typeof ApiTrpcSplatServerRoute
113​
114declare module '@tanstack/react-router' {
115 interface FileRoutesByPath {
116 '/login': {
117 id: '/login'
118 path: '/login'
119 fullPath: '/login'
120 preLoaderRoute: typeof LoginRouteImport
121 parentRoute: typeof rootRouteImport
122 }
123 '/_authenticated': {
124 id: '/_authenticated'
125 path: ''
126 fullPath: ''
127 preLoaderRoute: typeof AuthenticatedRouteImport
128 parentRoute: typeof rootRouteImport
129 }
130 '/_authenticated/': {
131 id: '/_authenticated/'
132 path: '/'
133 fullPath: '/'
134 preLoaderRoute: typeof AuthenticatedIndexRouteImport
135 parentRoute: typeof AuthenticatedRoute
136 }
137 '/_authenticated/project/$projectId': {
138 id: '/_authenticated/project/$projectId'
139 path: '/project/$projectId'
140 fullPath: '/project/$projectId'
141 preLoaderRoute: typeof AuthenticatedProjectProjectIdRouteImport
142 parentRoute: typeof AuthenticatedRoute
143 }
144 }
146declare module '@tanstack/react-start/server' {
147 interface ServerFileRoutesByPath {
148 '/api/auth': {
149 id: '/api/auth'
150 path: '/api/auth'
151 fullPath: '/api/auth'
152 preLoaderRoute: typeof ApiAuthServerRouteImport
153 parentRoute: typeof rootServerRouteImport
154 }
155 '/api/trpc/$': {
156 id: '/api/trpc/$'
157 path: '/api/trpc/$'
158 fullPath: '/api/trpc/$'
159 preLoaderRoute: typeof ApiTrpcSplatServerRouteImport
160 parentRoute: typeof rootServerRouteImport
161 }
162 }
164​
165interface AuthenticatedRouteChildren {
166 AuthenticatedIndexRoute: typeof AuthenticatedIndexRoute
167 AuthenticatedProjectProjectIdRoute: typeof AuthenticatedProjectProjectIdRoute
169​
170const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
171 AuthenticatedIndexRoute: AuthenticatedIndexRoute,
172 AuthenticatedProjectProjectIdRoute: AuthenticatedProjectProjectIdRoute,
174​
175const AuthenticatedRouteWithChildren = AuthenticatedRoute._addFileChildren(
176 AuthenticatedRouteChildren,
178​
179const rootRouteChildren: RootRouteChildren = {
180 AuthenticatedRoute: AuthenticatedRouteWithChildren,
181 LoginRoute: LoginRoute,
183export const routeTree = rootRouteImport
184 ._addFileChildren(rootRouteChildren)
185 ._addFileTypes<FileRouteTypes>()
186const rootServerRouteChildren: RootServerRouteChildren = {
187 ApiAuthServerRoute: ApiAuthServerRoute,
188 ApiTrpcSplatServerRoute: ApiTrpcSplatServerRoute,
190export const serverRouteTree = rootServerRouteImport
191 ._addFileChildren(rootServerRouteChildren)
192 ._addFileTypes<FileServerRouteTypes>()