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

routeTree.gen.ts

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