28 lines
762 B
TypeScript
28 lines
762 B
TypeScript
/**
|
|
* TODO: remove the declaration if possible when merging unplugin-vue-router
|
|
* into this monorepo in v6
|
|
*/
|
|
|
|
import type {
|
|
EXPERIMENTAL_Router,
|
|
EXPERIMENTAL_RouterOptions,
|
|
} from 'vue-router/experimental'
|
|
|
|
/**
|
|
* Handles HMR.
|
|
* Generated by unplugin-vue-router
|
|
*/
|
|
export function handleHotUpdate(router: EXPERIMENTAL_Router): void
|
|
|
|
/**
|
|
* Custom resolver automatically generated at build time
|
|
* Generated by unplugin-vue-router
|
|
*/
|
|
export declare const resolver: EXPERIMENTAL_RouterOptions['resolver']
|
|
|
|
// TODO:move to the generated route map so it can import the correct version (custom resolvers or not)
|
|
// Make the macros globally available
|
|
// declare global {
|
|
// const definePage: (typeof import("vue-router/experimental"))["definePage"];
|
|
// }
|