UNPKG

create-mori

Version:

Quickly create project templates to support the required repositories as much as possible

117 lines (94 loc) 2.68 kB
/* eslint-disable */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // This file was automatically generated by TanStack Router. // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. import { createFileRoute } from '@tanstack/react-router' // Import Routes import { Route as rootRoute } from './routes/__root' // Create Virtual Routes const AboutLazyImport = createFileRoute('/about')() const IndexLazyImport = createFileRoute('/')() // Create/Update Routes const AboutLazyRoute = AboutLazyImport.update({ id: '/about', path: '/about', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/about.lazy').then((d) => d.Route)) const IndexLazyRoute = IndexLazyImport.update({ id: '/', path: '/', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route)) // Populate the FileRoutesByPath interface declare module '@tanstack/react-router' { interface FileRoutesByPath { '/': { id: '/' path: '/' fullPath: '/' preLoaderRoute: typeof IndexLazyImport parentRoute: typeof rootRoute } '/about': { id: '/about' path: '/about' fullPath: '/about' preLoaderRoute: typeof AboutLazyImport parentRoute: typeof rootRoute } } } // Create and export the route tree export interface FileRoutesByFullPath { '/': typeof IndexLazyRoute '/about': typeof AboutLazyRoute } export interface FileRoutesByTo { '/': typeof IndexLazyRoute '/about': typeof AboutLazyRoute } export interface FileRoutesById { __root__: typeof rootRoute '/': typeof IndexLazyRoute '/about': typeof AboutLazyRoute } export interface FileRouteTypes { fileRoutesByFullPath: FileRoutesByFullPath fullPaths: '/' | '/about' fileRoutesByTo: FileRoutesByTo to: '/' | '/about' id: '__root__' | '/' | '/about' fileRoutesById: FileRoutesById } export interface RootRouteChildren { IndexLazyRoute: typeof IndexLazyRoute AboutLazyRoute: typeof AboutLazyRoute } const rootRouteChildren: RootRouteChildren = { IndexLazyRoute: IndexLazyRoute, AboutLazyRoute: AboutLazyRoute, } export const routeTree = rootRoute ._addFileChildren(rootRouteChildren) ._addFileTypes<FileRouteTypes>() /* ROUTE_MANIFEST_START { "routes": { "__root__": { "filePath": "__root.tsx", "children": [ "/", "/about" ] }, "/": { "filePath": "index.lazy.tsx" }, "/about": { "filePath": "about.lazy.tsx" } } } ROUTE_MANIFEST_END */