Ohm-Management - Projektarbeit B-ME
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.

vue.d.ts 484B

12345678910111213141516171819202122
  1. /**
  2. * Augment the typings of Vue.js
  3. */
  4. import Vue from "vue";
  5. import VueRouter, { Route, RawLocation, NavigationGuard } from "./index";
  6. declare module "vue/types/vue" {
  7. interface Vue {
  8. $router: VueRouter;
  9. $route: Route;
  10. }
  11. }
  12. declare module "vue/types/options" {
  13. interface ComponentOptions<V extends Vue> {
  14. router?: VueRouter;
  15. beforeRouteEnter?: NavigationGuard<V>;
  16. beforeRouteLeave?: NavigationGuard<V>;
  17. beforeRouteUpdate?: NavigationGuard<V>;
  18. }
  19. }