- File-based routing with tanstack router
- Persist top-level navigation state in url, even for most legacy pages
- Striving for an intuitive and simple folder structure where
route-related code is colocated, but the amount of files is still
kept to a minimum
- Replace native fetch with `ky`
- Familiar api, but more polished
95 lines
2.6 KiB
TypeScript
95 lines
2.6 KiB
TypeScript
/* 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 { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as SplatRouteImport } from './routes/$'
|
|
import { Route as IssuesRouteRouteImport } from './routes/issues/route'
|
|
import { Route as IndexRouteImport } from './routes/index'
|
|
|
|
const SplatRoute = SplatRouteImport.update({
|
|
id: '/$',
|
|
path: '/$',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const IssuesRouteRoute = IssuesRouteRouteImport.update({
|
|
id: '/issues',
|
|
path: '/issues',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const IndexRoute = IndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/issues': typeof IssuesRouteRoute
|
|
'/$': typeof SplatRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/issues': typeof IssuesRouteRoute
|
|
'/$': typeof SplatRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/': typeof IndexRoute
|
|
'/issues': typeof IssuesRouteRoute
|
|
'/$': typeof SplatRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths: '/' | '/issues' | '/$'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to: '/' | '/issues' | '/$'
|
|
id: '__root__' | '/' | '/issues' | '/$'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
IssuesRouteRoute: typeof IssuesRouteRoute
|
|
SplatRoute: typeof SplatRoute
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/$': {
|
|
id: '/$'
|
|
path: '/$'
|
|
fullPath: '/$'
|
|
preLoaderRoute: typeof SplatRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/issues': {
|
|
id: '/issues'
|
|
path: '/issues'
|
|
fullPath: '/issues'
|
|
preLoaderRoute: typeof IssuesRouteRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
}
|
|
}
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
IssuesRouteRoute: IssuesRouteRoute,
|
|
SplatRoute: SplatRoute,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|