import Vue from 'vue' import VueRouter, {Route} from 'vue-router' import axios from 'axios' interface MessageBoxOptions { title: string message: string } interface IndicatorOptions { text: string spinnerType: string } interface Indicator { open(options: IndicatorOptions) close() } declare module 'vue/types/vue' { interface Vue { $Indicator: Indicator $MessageBox(msg: string | MessageBoxOptions) $Toast(msg: string | any) $router: VueRouter $route: Route } } declare module 'axios' { interface AxiosRequestConfig { disableAlert?: boolean } }