You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
475 B
22 lines
475 B
/**
|
|
* Augment the typings of Vue.js
|
|
*/
|
|
|
|
import Vue from "vue";
|
|
import VueRouter, { Route, RawLocation, NavigationGuard } from "./index";
|
|
|
|
declare module "vue/types/vue" {
|
|
interface Vue {
|
|
$router: VueRouter;
|
|
$route: Route;
|
|
}
|
|
}
|
|
|
|
declare module "vue/types/options" {
|
|
interface ComponentOptions<V extends Vue> {
|
|
router?: VueRouter;
|
|
beforeRouteEnter?: NavigationGuard;
|
|
beforeRouteLeave?: NavigationGuard;
|
|
beforeRouteUpdate?: NavigationGuard;
|
|
}
|
|
}
|
|
|