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

routeTree.gen.ts

182 lines5.8 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 { lazyRouteComponent } from '@tanstack/vue-router'
12​
13import { Route as rootRouteImport } from './routes/__root'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as ContactsContactIdRouteRouteImport } from './routes/contacts.$contactId.route'
16import { Route as ContactsNewRouteImport } from './routes/contacts.new'
17import { Route as ContactsContactIdIndexRouteImport } from './routes/contacts.$contactId.index'
18import { Route as ContactsContactIdEditRouteImport } from './routes/contacts.$contactId.edit'
19​
20const IndexRoute = IndexRouteImport.update({
21 id: '/',
22 path: '/',
23 getParentRoute: () => rootRouteImport,
24} as any).update({
25 component: lazyRouteComponent(
26 () => import('./routes/index.component.vue'),
27 'default',
28 ),
29})
30const ContactsContactIdRouteRoute = ContactsContactIdRouteRouteImport.update({
31 id: '/contacts/$contactId',
32 path: '/contacts/$contactId',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const ContactsNewRoute = ContactsNewRouteImport.update({
36 id: '/contacts/new',
37 path: '/contacts/new',
38 getParentRoute: () => rootRouteImport,
39} as any).update({
40 component: lazyRouteComponent(
41 () => import('./routes/contacts.new.component.vue'),
42 'default',
43 ),
44})
45const ContactsContactIdIndexRoute = ContactsContactIdIndexRouteImport.update({
46 id: '/',
47 path: '/',
48 getParentRoute: () => ContactsContactIdRouteRoute,
49} as any).update({
50 component: lazyRouteComponent(
51 () => import('./routes/contacts.$contactId.index.component.vue'),
52 'default',
53 ),
54})
55const ContactsContactIdEditRoute = ContactsContactIdEditRouteImport.update({
56 id: '/edit',
57 path: '/edit',
58 getParentRoute: () => ContactsContactIdRouteRoute,
59} as any).update({
60 component: lazyRouteComponent(
61 () => import('./routes/contacts.$contactId.edit.component.vue'),
62 'default',
63 ),
64})
65​
66export interface FileRoutesByFullPath {
67 '/': typeof IndexRoute
68 '/contacts/$contactId': typeof ContactsContactIdRouteRouteWithChildren
69 '/contacts/new': typeof ContactsNewRoute
70 '/contacts/$contactId/edit': typeof ContactsContactIdEditRoute
71 '/contacts/$contactId/': typeof ContactsContactIdIndexRoute
73export interface FileRoutesByTo {
74 '/': typeof IndexRoute
75 '/contacts/new': typeof ContactsNewRoute
76 '/contacts/$contactId/edit': typeof ContactsContactIdEditRoute
77 '/contacts/$contactId': typeof ContactsContactIdIndexRoute
79export interface FileRoutesById {
80 __root__: typeof rootRouteImport
81 '/': typeof IndexRoute
82 '/contacts/$contactId': typeof ContactsContactIdRouteRouteWithChildren
83 '/contacts/new': typeof ContactsNewRoute
84 '/contacts/$contactId/edit': typeof ContactsContactIdEditRoute
85 '/contacts/$contactId/': typeof ContactsContactIdIndexRoute
87export interface FileRouteTypes {
88 fileRoutesByFullPath: FileRoutesByFullPath
89 fullPaths:
90 | '/'
91 | '/contacts/$contactId'
92 | '/contacts/new'
93 | '/contacts/$contactId/edit'
94 | '/contacts/$contactId/'
95 fileRoutesByTo: FileRoutesByTo
96 to:
97 '/' | '/contacts/new' | '/contacts/$contactId/edit' | '/contacts/$contactId'
98 id:
99 | '__root__'
100 | '/'
101 | '/contacts/$contactId'
102 | '/contacts/new'
103 | '/contacts/$contactId/edit'
104 | '/contacts/$contactId/'
105 fileRoutesById: FileRoutesById
107export interface RootRouteChildren {
108 IndexRoute: typeof IndexRoute
109 ContactsContactIdRouteRoute: typeof ContactsContactIdRouteRouteWithChildren
110 ContactsNewRoute: typeof ContactsNewRoute
112​
113declare module '@tanstack/vue-router' {
114 interface FileRoutesByPath {
115 '/': {
116 id: '/'
117 path: '/'
118 fullPath: '/'
119 preLoaderRoute: typeof IndexRouteImport
120 parentRoute: typeof rootRouteImport
121 }
122 '/contacts/$contactId': {
123 id: '/contacts/$contactId'
124 path: '/contacts/$contactId'
125 fullPath: '/contacts/$contactId'
126 preLoaderRoute: typeof ContactsContactIdRouteRouteImport
127 parentRoute: typeof rootRouteImport
128 }
129 '/contacts/new': {
130 id: '/contacts/new'
131 path: '/contacts/new'
132 fullPath: '/contacts/new'
133 preLoaderRoute: typeof ContactsNewRouteImport
134 parentRoute: typeof rootRouteImport
135 }
136 '/contacts/$contactId/': {
137 id: '/contacts/$contactId/'
138 path: '/'
139 fullPath: '/contacts/$contactId/'
140 preLoaderRoute: typeof ContactsContactIdIndexRouteImport
141 parentRoute: typeof ContactsContactIdRouteRoute
142 }
143 '/contacts/$contactId/edit': {
144 id: '/contacts/$contactId/edit'
145 path: '/edit'
146 fullPath: '/contacts/$contactId/edit'
147 preLoaderRoute: typeof ContactsContactIdEditRouteImport
148 parentRoute: typeof ContactsContactIdRouteRoute
149 }
150 }
152​
153interface ContactsContactIdRouteRouteChildren {
154 ContactsContactIdEditRoute: typeof ContactsContactIdEditRoute
155 ContactsContactIdIndexRoute: typeof ContactsContactIdIndexRoute
157​
158const ContactsContactIdRouteRouteChildren: ContactsContactIdRouteRouteChildren =
159 {
160 ContactsContactIdEditRoute: ContactsContactIdEditRoute,
161 ContactsContactIdIndexRoute: ContactsContactIdIndexRoute,
162 }
163​
164const ContactsContactIdRouteRouteWithChildren =
165 ContactsContactIdRouteRoute._addFileChildren(
166 ContactsContactIdRouteRouteChildren,
167 )
168​
169const rootRouteChildren: RootRouteChildren = {
170 IndexRoute: IndexRoute,
171 ContactsContactIdRouteRoute: ContactsContactIdRouteRouteWithChildren,
172 ContactsNewRoute: ContactsNewRoute,
174export const routeTree = rootRouteImport
175 .update({
176 component: lazyRouteComponent(
177 () => import('./routes/__root.component.vue'),
178 'default',
179 ),
180 })
181 ._addFileChildren(rootRouteChildren)
182 ._addFileTypes<FileRouteTypes>()