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

routeTree.gen.js

95 lines3.3 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 PathlessLayoutRouteImport } from './routes/_pathlessLayout'
13import { Route as PostsRouteRouteImport } from './routes/posts.route'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as PostsIndexRouteImport } from './routes/posts.index'
16import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
17import { Route as PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
18import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
19import { Route as PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
20​
21const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
22 id: '/_pathlessLayout',
23 getParentRoute: () => rootRouteImport,
24})
25const PostsRouteRoute = PostsRouteRouteImport.update({
26 id: '/posts',
27 path: '/posts',
28 getParentRoute: () => rootRouteImport,
29})
30const IndexRoute = IndexRouteImport.update({
31 id: '/',
32 path: '/',
33 getParentRoute: () => rootRouteImport,
34})
35const PostsIndexRoute = PostsIndexRouteImport.update({
36 id: '/',
37 path: '/',
38 getParentRoute: () => PostsRouteRoute,
39})
40const PostsPostIdRoute = PostsPostIdRouteImport.update({
41 id: '/$postId',
42 path: '/$postId',
43 getParentRoute: () => PostsRouteRoute,
44})
45const PathlessLayoutNestedLayoutRoute =
46 PathlessLayoutNestedLayoutRouteImport.update({
47 id: '/_nested-layout',
48 getParentRoute: () => PathlessLayoutRoute,
49 })
50const PathlessLayoutNestedLayoutRouteBRoute =
51 PathlessLayoutNestedLayoutRouteBRouteImport.update({
52 id: '/route-b',
53 path: '/route-b',
54 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
55 })
56const PathlessLayoutNestedLayoutRouteARoute =
57 PathlessLayoutNestedLayoutRouteARouteImport.update({
58 id: '/route-a',
59 path: '/route-a',
60 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
61 })
62​
63const PostsRouteRouteChildren = {
64 PostsPostIdRoute: PostsPostIdRoute,
65 PostsIndexRoute: PostsIndexRoute,
67​
68const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
69 PostsRouteRouteChildren,
71​
72const PathlessLayoutNestedLayoutRouteChildren = {
73 PathlessLayoutNestedLayoutRouteARoute: PathlessLayoutNestedLayoutRouteARoute,
74 PathlessLayoutNestedLayoutRouteBRoute: PathlessLayoutNestedLayoutRouteBRoute,
76​
77const PathlessLayoutNestedLayoutRouteWithChildren =
78 PathlessLayoutNestedLayoutRoute._addFileChildren(
79 PathlessLayoutNestedLayoutRouteChildren,
80 )
81​
82const PathlessLayoutRouteChildren = {
83 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
85​
86const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
87 PathlessLayoutRouteChildren,
89​
90const rootRouteChildren = {
91 IndexRoute: IndexRoute,
92 PostsRouteRoute: PostsRouteRouteWithChildren,
93 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
95export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)