/* Because no other Typescript files loads the VueRouter through an import, the definitions are never loaded. Therefore we run into issues where `this.$router` and `this.$route` are never defined. This file solves the problem with a workaround, by loading the plugin through a Typescript file. */ import Vue from 'vue'; import VueRouter from 'vue-router'; export const TypedVue = Vue; export const TypedVueRouter = VueRouter;