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

routeTree.gen.ts

122 lines3.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 ProtectedRouteImport } from './routes/protected'
13import { Route as LoginRouteImport } from './routes/login'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
16​
17const ProtectedRoute = ProtectedRouteImport.update({
18 id: '/protected',
19 path: '/protected',
20 getParentRoute: () => rootRouteImport,
21} as any)
22const LoginRoute = LoginRouteImport.update({
23 id: '/login',
24 path: '/login',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const IndexRoute = IndexRouteImport.update({
28 id: '/',
29 path: '/',
30 getParentRoute: () => rootRouteImport,
31} as any)
32const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
33 id: '/api/auth/$',
34 path: '/api/auth/$',
35 getParentRoute: () => rootRouteImport,
36} as any)
37​
38export interface FileRoutesByFullPath {
39 '/': typeof IndexRoute
40 '/login': typeof LoginRoute
41 '/protected': typeof ProtectedRoute
42 '/api/auth/$': typeof ApiAuthSplatRoute
44export interface FileRoutesByTo {
45 '/': typeof IndexRoute
46 '/login': typeof LoginRoute
47 '/protected': typeof ProtectedRoute
48 '/api/auth/$': typeof ApiAuthSplatRoute
50export interface FileRoutesById {
51 __root__: typeof rootRouteImport
52 '/': typeof IndexRoute
53 '/login': typeof LoginRoute
54 '/protected': typeof ProtectedRoute
55 '/api/auth/$': typeof ApiAuthSplatRoute
57export interface FileRouteTypes {
58 fileRoutesByFullPath: FileRoutesByFullPath
59 fullPaths: '/' | '/login' | '/protected' | '/api/auth/$'
60 fileRoutesByTo: FileRoutesByTo
61 to: '/' | '/login' | '/protected' | '/api/auth/$'
62 id: '__root__' | '/' | '/login' | '/protected' | '/api/auth/$'
63 fileRoutesById: FileRoutesById
65export interface RootRouteChildren {
66 IndexRoute: typeof IndexRoute
67 LoginRoute: typeof LoginRoute
68 ProtectedRoute: typeof ProtectedRoute
69 ApiAuthSplatRoute: typeof ApiAuthSplatRoute
71​
72declare module '@tanstack/solid-router' {
73 interface FileRoutesByPath {
74 '/protected': {
75 id: '/protected'
76 path: '/protected'
77 fullPath: '/protected'
78 preLoaderRoute: typeof ProtectedRouteImport
79 parentRoute: typeof rootRouteImport
80 }
81 '/login': {
82 id: '/login'
83 path: '/login'
84 fullPath: '/login'
85 preLoaderRoute: typeof LoginRouteImport
86 parentRoute: typeof rootRouteImport
87 }
88 '/': {
89 id: '/'
90 path: '/'
91 fullPath: '/'
92 preLoaderRoute: typeof IndexRouteImport
93 parentRoute: typeof rootRouteImport
94 }
95 '/api/auth/$': {
96 id: '/api/auth/$'
97 path: '/api/auth/$'
98 fullPath: '/api/auth/$'
99 preLoaderRoute: typeof ApiAuthSplatRouteImport
100 parentRoute: typeof rootRouteImport
101 }
102 }
104​
105const rootRouteChildren: RootRouteChildren = {
106 IndexRoute: IndexRoute,
107 LoginRoute: LoginRoute,
108 ProtectedRoute: ProtectedRoute,
109 ApiAuthSplatRoute: ApiAuthSplatRoute,
111export const routeTree = rootRouteImport
112 ._addFileChildren(rootRouteChildren)
113 ._addFileTypes<FileRouteTypes>()
114​
115import type { getRouter } from './router.tsx'
116import type { createStart } from '@tanstack/solid-start'
117declare module '@tanstack/solid-start' {
118 interface Register {
119 ssr: true
120 router: Awaited<ReturnType<typeof getRouter>>
121 }