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

routeTree.gen.ts

89 lines2.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 { lazyRouteComponent } from '@tanstack/vue-router'
12​
13import { Route as rootRouteImport } from './routes/__root'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as MovieIdRouteImport } from './routes/$movieId'
16​
17const IndexRoute = IndexRouteImport.update({
18 id: '/',
19 path: '/',
20 getParentRoute: () => rootRouteImport,
21} as any).update({
22 component: lazyRouteComponent(
23 () => import('./routes/index.component.vue'),
24 'default',
25 ),
26})
27const MovieIdRoute = MovieIdRouteImport.update({
28 id: '/$movieId',
29 path: '/$movieId',
30 getParentRoute: () => rootRouteImport,
31} as any).update({
32 component: lazyRouteComponent(
33 () => import('./routes/$movieId.component.vue'),
34 'default',
35 ),
36})
37​
38export interface FileRoutesByFullPath {
39 '/': typeof IndexRoute
40 '/$movieId': typeof MovieIdRoute
42export interface FileRoutesByTo {
43 '/': typeof IndexRoute
44 '/$movieId': typeof MovieIdRoute
46export interface FileRoutesById {
47 __root__: typeof rootRouteImport
48 '/': typeof IndexRoute
49 '/$movieId': typeof MovieIdRoute
51export interface FileRouteTypes {
52 fileRoutesByFullPath: FileRoutesByFullPath
53 fullPaths: '/' | '/$movieId'
54 fileRoutesByTo: FileRoutesByTo
55 to: '/' | '/$movieId'
56 id: '__root__' | '/' | '/$movieId'
57 fileRoutesById: FileRoutesById
59export interface RootRouteChildren {
60 IndexRoute: typeof IndexRoute
61 MovieIdRoute: typeof MovieIdRoute
63​
64declare module '@tanstack/vue-router' {
65 interface FileRoutesByPath {
66 '/': {
67 id: '/'
68 path: '/'
69 fullPath: '/'
70 preLoaderRoute: typeof IndexRouteImport
71 parentRoute: typeof rootRouteImport
72 }
73 '/$movieId': {
74 id: '/$movieId'
75 path: '/$movieId'
76 fullPath: '/$movieId'
77 preLoaderRoute: typeof MovieIdRouteImport
78 parentRoute: typeof rootRouteImport
79 }
80 }
82​
83const rootRouteChildren: RootRouteChildren = {
84 IndexRoute: IndexRoute,
85 MovieIdRoute: MovieIdRoute,
87export const routeTree = rootRouteImport
88 ._addFileChildren(rootRouteChildren)
89 ._addFileTypes<FileRouteTypes>()