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

routeTree.gen.ts

153 lines4.7 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 LogoutRouteImport } from './routes/logout'
13import { Route as AuthenticatedRouteImport } from './routes/_authenticated'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as AuthenticatedAccountRouteImport } from './routes/_authenticated/account'
16import { Route as ApiAuthCallbackRouteImport } from './routes/api/auth/callback'
17​
18const LogoutRoute = LogoutRouteImport.update({
19 id: '/logout',
20 path: '/logout',
21 getParentRoute: () => rootRouteImport,
22} as any)
23const AuthenticatedRoute = AuthenticatedRouteImport.update({
24 id: '/_authenticated',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const IndexRoute = IndexRouteImport.update({
28 id: '/',
29 path: '/',
30 getParentRoute: () => rootRouteImport,
31} as any)
32const AuthenticatedAccountRoute = AuthenticatedAccountRouteImport.update({
33 id: '/account',
34 path: '/account',
35 getParentRoute: () => AuthenticatedRoute,
36} as any)
37const ApiAuthCallbackRoute = ApiAuthCallbackRouteImport.update({
38 id: '/api/auth/callback',
39 path: '/api/auth/callback',
40 getParentRoute: () => rootRouteImport,
41} as any)
42​
43export interface FileRoutesByFullPath {
44 '/': typeof IndexRoute
45 '/logout': typeof LogoutRoute
46 '/account': typeof AuthenticatedAccountRoute
47 '/api/auth/callback': typeof ApiAuthCallbackRoute
49export interface FileRoutesByTo {
50 '/': typeof IndexRoute
51 '/logout': typeof LogoutRoute
52 '/account': typeof AuthenticatedAccountRoute
53 '/api/auth/callback': typeof ApiAuthCallbackRoute
55export interface FileRoutesById {
56 __root__: typeof rootRouteImport
57 '/': typeof IndexRoute
58 '/_authenticated': typeof AuthenticatedRouteWithChildren
59 '/logout': typeof LogoutRoute
60 '/_authenticated/account': typeof AuthenticatedAccountRoute
61 '/api/auth/callback': typeof ApiAuthCallbackRoute
63export interface FileRouteTypes {
64 fileRoutesByFullPath: FileRoutesByFullPath
65 fullPaths: '/' | '/logout' | '/account' | '/api/auth/callback'
66 fileRoutesByTo: FileRoutesByTo
67 to: '/' | '/logout' | '/account' | '/api/auth/callback'
68 id:
69 | '__root__'
70 | '/'
71 | '/_authenticated'
72 | '/logout'
73 | '/_authenticated/account'
74 | '/api/auth/callback'
75 fileRoutesById: FileRoutesById
77export interface RootRouteChildren {
78 IndexRoute: typeof IndexRoute
79 AuthenticatedRoute: typeof AuthenticatedRouteWithChildren
80 LogoutRoute: typeof LogoutRoute
81 ApiAuthCallbackRoute: typeof ApiAuthCallbackRoute
83​
84declare module '@tanstack/react-router' {
85 interface FileRoutesByPath {
86 '/logout': {
87 id: '/logout'
88 path: '/logout'
89 fullPath: '/logout'
90 preLoaderRoute: typeof LogoutRouteImport
91 parentRoute: typeof rootRouteImport
92 }
93 '/_authenticated': {
94 id: '/_authenticated'
95 path: ''
96 fullPath: ''
97 preLoaderRoute: typeof AuthenticatedRouteImport
98 parentRoute: typeof rootRouteImport
99 }
100 '/': {
101 id: '/'
102 path: '/'
103 fullPath: '/'
104 preLoaderRoute: typeof IndexRouteImport
105 parentRoute: typeof rootRouteImport
106 }
107 '/_authenticated/account': {
108 id: '/_authenticated/account'
109 path: '/account'
110 fullPath: '/account'
111 preLoaderRoute: typeof AuthenticatedAccountRouteImport
112 parentRoute: typeof AuthenticatedRoute
113 }
114 '/api/auth/callback': {
115 id: '/api/auth/callback'
116 path: '/api/auth/callback'
117 fullPath: '/api/auth/callback'
118 preLoaderRoute: typeof ApiAuthCallbackRouteImport
119 parentRoute: typeof rootRouteImport
120 }
121 }
123​
124interface AuthenticatedRouteChildren {
125 AuthenticatedAccountRoute: typeof AuthenticatedAccountRoute
127​
128const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
129 AuthenticatedAccountRoute: AuthenticatedAccountRoute,
131​
132const AuthenticatedRouteWithChildren = AuthenticatedRoute._addFileChildren(
133 AuthenticatedRouteChildren,
135​
136const rootRouteChildren: RootRouteChildren = {
137 IndexRoute: IndexRoute,
138 AuthenticatedRoute: AuthenticatedRouteWithChildren,
139 LogoutRoute: LogoutRoute,
140 ApiAuthCallbackRoute: ApiAuthCallbackRoute,
142export const routeTree = rootRouteImport
143 ._addFileChildren(rootRouteChildren)
144 ._addFileTypes<FileRouteTypes>()
145​
146import type { getRouter } from './router.tsx'
147import type { createStart } from '@tanstack/react-start'
148declare module '@tanstack/react-start' {
149 interface Register {
150 ssr: true
151 router: Awaited<ReturnType<typeof getRouter>>
152 }