Skip to content

Commit 638c0db

Browse files
ci: apply automated fixes
1 parent cb9bee5 commit 638c0db

1 file changed

Lines changed: 57 additions & 39 deletions

File tree

‎packages/router-generator/tests/generator/no-formatted-route-tree/routeTree.nonnested.snapshot.ts‎

Lines changed: 57 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,64 +14,82 @@ import { Route as NestedIndexRouteImport } from './routes/nested/index'
1414
import { Route as NestedChildRouteImport } from './routes/nested/child'
1515

1616
const IndexRoute = IndexRouteImport.update({
17-
id: '/',path: '/',getParentRoute: () => rootRouteImport
18-
}as any)
17+
id: '/',
18+
path: '/',
19+
getParentRoute: () => rootRouteImport,
20+
} as any)
1921
const NestedIndexRoute = NestedIndexRouteImport.update({
20-
id: '/nested/',path: '/nested/',getParentRoute: () => rootRouteImport
21-
}as any)
22+
id: '/nested/',
23+
path: '/nested/',
24+
getParentRoute: () => rootRouteImport,
25+
} as any)
2226
const NestedChildRoute = NestedChildRouteImport.update({
23-
id: '/nested/child',path: '/nested/child',getParentRoute: () => rootRouteImport
24-
}as any)
27+
id: '/nested/child',
28+
path: '/nested/child',
29+
getParentRoute: () => rootRouteImport,
30+
} as any)
2531

2632
export interface FileRoutesByFullPath {
27-
'/': typeof IndexRoute,'/nested/child': typeof NestedChildRoute,'/nested': typeof NestedIndexRoute
33+
'/': typeof IndexRoute
34+
'/nested/child': typeof NestedChildRoute
35+
'/nested': typeof NestedIndexRoute
2836
}
2937
export interface FileRoutesByTo {
30-
'/': typeof IndexRoute,'/nested/child': typeof NestedChildRoute,'/nested': typeof NestedIndexRoute
38+
'/': typeof IndexRoute
39+
'/nested/child': typeof NestedChildRoute
40+
'/nested': typeof NestedIndexRoute
3141
}
3242
export interface FileRoutesById {
33-
'__root__': typeof rootRouteImport,
34-
'/': typeof IndexRoute,'/nested/child': typeof NestedChildRoute,'/nested/': typeof NestedIndexRoute
43+
__root__: typeof rootRouteImport
44+
'/': typeof IndexRoute
45+
'/nested/child': typeof NestedChildRoute
46+
'/nested/': typeof NestedIndexRoute
3547
}
3648
export interface FileRouteTypes {
37-
fileRoutesByFullPath: FileRoutesByFullPath
38-
fullPaths: '/'|'/nested/child'|'/nested'
39-
fileRoutesByTo: FileRoutesByTo
40-
to: '/'|'/nested/child'|'/nested'
41-
id: '__root__'|'/'|'/nested/child'|'/nested/'
42-
fileRoutesById: FileRoutesById
49+
fileRoutesByFullPath: FileRoutesByFullPath
50+
fullPaths: '/' | '/nested/child' | '/nested'
51+
fileRoutesByTo: FileRoutesByTo
52+
to: '/' | '/nested/child' | '/nested'
53+
id: '__root__' | '/' | '/nested/child' | '/nested/'
54+
fileRoutesById: FileRoutesById
4355
}
4456
export interface RootRouteChildren {
45-
IndexRoute: typeof IndexRoute,NestedChildRoute: typeof NestedChildRoute,NestedIndexRoute: typeof NestedIndexRoute
57+
IndexRoute: typeof IndexRoute
58+
NestedChildRoute: typeof NestedChildRoute
59+
NestedIndexRoute: typeof NestedIndexRoute
4660
}
4761

4862
declare module '@tanstack/react-router' {
4963
interface FileRoutesByPath {
5064
'/': {
51-
id: '/'
52-
path: '/'
53-
fullPath: '/'
54-
preLoaderRoute: typeof IndexRouteImport
55-
parentRoute: typeof rootRouteImport
56-
}
57-
'/nested/': {
58-
id: '/nested/'
59-
path: '/nested'
60-
fullPath: '/nested'
61-
preLoaderRoute: typeof NestedIndexRouteImport
62-
parentRoute: typeof rootRouteImport
63-
}
64-
'/nested/child': {
65-
id: '/nested/child'
66-
path: '/nested/child'
67-
fullPath: '/nested/child'
68-
preLoaderRoute: typeof NestedChildRouteImport
69-
parentRoute: typeof rootRouteImport
70-
}
65+
id: '/'
66+
path: '/'
67+
fullPath: '/'
68+
preLoaderRoute: typeof IndexRouteImport
69+
parentRoute: typeof rootRouteImport
70+
}
71+
'/nested/': {
72+
id: '/nested/'
73+
path: '/nested'
74+
fullPath: '/nested'
75+
preLoaderRoute: typeof NestedIndexRouteImport
76+
parentRoute: typeof rootRouteImport
77+
}
78+
'/nested/child': {
79+
id: '/nested/child'
80+
path: '/nested/child'
81+
fullPath: '/nested/child'
82+
preLoaderRoute: typeof NestedChildRouteImport
83+
parentRoute: typeof rootRouteImport
84+
}
7185
}
7286
}
7387

7488
const rootRouteChildren: RootRouteChildren = {
75-
IndexRoute: IndexRoute,NestedChildRoute: NestedChildRoute,NestedIndexRoute: NestedIndexRoute
89+
IndexRoute: IndexRoute,
90+
NestedChildRoute: NestedChildRoute,
91+
NestedIndexRoute: NestedIndexRoute,
7692
}
77-
export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)._addFileTypes<FileRouteTypes>()
93+
export const routeTree = rootRouteImport
94+
._addFileChildren(rootRouteChildren)
95+
._addFileTypes<FileRouteTypes>()

0 commit comments

Comments
 (0)