/* eslint-disable */ /* prettier-ignore */ // @ts-nocheck // Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️ // It's recommended to commit this file. // Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry. /// import type { // type safe route locations RouteLocationTypedList, RouteLocationResolvedTypedList, RouteLocationNormalizedTypedList, RouteLocationNormalizedLoadedTypedList, RouteLocationAsString, RouteLocationAsRelativeTypedList, RouteLocationAsPathTypedList, // helper types // route definitions RouteRecordInfo, ParamValue, ParamValueOneOrMore, ParamValueZeroOrMore, ParamValueZeroOrOne, // vue-router extensions _RouterTyped, RouterLinkTyped, RouterLinkPropsTyped, NavigationGuard, UseLinkFnTyped, // data fetching _DataLoader, _DefineLoaderOptions, } from 'unplugin-vue-router/types' declare module 'vue-router/auto/routes' { export interface RouteNamedMap { '/_layout/': RouteRecordInfo<'/_layout/', '/_layout', Record, Record>, '/_login/': RouteRecordInfo<'/_login/', '/_login', Record, Record>, '/[..._all]/': RouteRecordInfo<'/[..._all]/', '/:_all(.*)', { _all: ParamValue }, { _all: ParamValue }>, '/dev/openapi': RouteRecordInfo<'/dev/openapi', '/dev/openapi', Record, Record>, '/home/demo': RouteRecordInfo<'/home/demo', '/home/demo', Record, Record>, '/home/home': RouteRecordInfo<'/home/home', '/home/home', Record, Record>, '/home/test': RouteRecordInfo<'/home/test', '/home/test', Record, Record>, '/my/': RouteRecordInfo<'/my/', '/my', Record, Record>, '/post/': RouteRecordInfo<'/post/', '/post', Record, Record>, '/post/category/': RouteRecordInfo<'/post/category/', '/post/category', Record, Record>, '/post/comment/': RouteRecordInfo<'/post/comment/', '/post/comment', Record, Record>, '/post/media/': RouteRecordInfo<'/post/media/', '/post/media', Record, Record>, '/post/post/': RouteRecordInfo<'/post/post/', '/post/post', Record, Record>, '/system/': RouteRecordInfo<'/system/', '/system', Record, Record>, '/system/login-log/': RouteRecordInfo<'/system/login-log/', '/system/login-log', Record, Record>, '/system/menu/': RouteRecordInfo<'/system/menu/', '/system/menu', Record, Record>, '/system/operation-log/': RouteRecordInfo<'/system/operation-log/', '/system/operation-log', Record, Record>, '/system/permission/': RouteRecordInfo<'/system/permission/', '/system/permission', Record, Record>, '/system/role/': RouteRecordInfo<'/system/role/', '/system/role', Record, Record>, '/system/user/': RouteRecordInfo<'/system/user/', '/system/user', Record, Record>, } } declare module 'vue-router/auto' { import type { RouteNamedMap } from 'vue-router/auto/routes' export type RouterTyped = _RouterTyped /** * Type safe version of `RouteLocationNormalized` (the type of `to` and `from` in navigation guards). * Allows passing the name of the route to be passed as a generic. */ export type RouteLocationNormalized = RouteLocationNormalizedTypedList[Name] /** * Type safe version of `RouteLocationNormalizedLoaded` (the return type of `useRoute()`). * Allows passing the name of the route to be passed as a generic. */ export type RouteLocationNormalizedLoaded = RouteLocationNormalizedLoadedTypedList[Name] /** * Type safe version of `RouteLocationResolved` (the returned route of `router.resolve()`). * Allows passing the name of the route to be passed as a generic. */ export type RouteLocationResolved = RouteLocationResolvedTypedList[Name] /** * Type safe version of `RouteLocation` . Allows passing the name of the route to be passed as a generic. */ export type RouteLocation = RouteLocationTypedList[Name] /** * Type safe version of `RouteLocationRaw` . Allows passing the name of the route to be passed as a generic. */ export type RouteLocationRaw = | RouteLocationAsString | RouteLocationAsRelativeTypedList[Name] | RouteLocationAsPathTypedList[Name] /** * Generate a type safe params for a route location. Requires the name of the route to be passed as a generic. */ export type RouteParams = RouteNamedMap[Name]['params'] /** * Generate a type safe raw params for a route location. Requires the name of the route to be passed as a generic. */ export type RouteParamsRaw = RouteNamedMap[Name]['paramsRaw'] export function useRouter(): RouterTyped export function useRoute(name?: Name): RouteLocationNormalizedLoadedTypedList[Name] export const useLink: UseLinkFnTyped export function onBeforeRouteLeave(guard: NavigationGuard): void export function onBeforeRouteUpdate(guard: NavigationGuard): void export const RouterLink: RouterLinkTyped export const RouterLinkProps: RouterLinkPropsTyped // Experimental Data Fetching export function defineLoader< P extends Promise, Name extends keyof RouteNamedMap = keyof RouteNamedMap, isLazy extends boolean = false, >( name: Name, loader: (route: RouteLocationNormalizedLoaded) => P, options?: _DefineLoaderOptions, ): _DataLoader, isLazy> export function defineLoader< P extends Promise, isLazy extends boolean = false, >( loader: (route: RouteLocationNormalizedLoaded) => P, options?: _DefineLoaderOptions, ): _DataLoader, isLazy> export { _definePage as definePage, _HasDataLoaderMeta as HasDataLoaderMeta, _setupDataFetchingGuard as setupDataFetchingGuard, _stopDataFetchingScope as stopDataFetchingScope, } from 'unplugin-vue-router/runtime' } declare module 'vue-router' { import type { RouteNamedMap } from 'vue-router/auto/routes' export interface TypesConfig { beforeRouteUpdate: NavigationGuard beforeRouteLeave: NavigationGuard $route: RouteLocationNormalizedLoadedTypedList[keyof RouteNamedMap] $router: _RouterTyped RouterLink: RouterLinkTyped } }