UNPKG

366 BTypeScriptView Raw
1import Vue, {PluginFunction, PluginObject} from "vue";
2import {AxiosInstance} from "axios";
3
4declare module "vue/types/vue" {
5
6 interface Vue {
7 axios: AxiosInstance;
8 $http: AxiosInstance;
9 }
10
11 interface VueConstructor {
12 axios: AxiosInstance;
13 }
14}
15
16declare class VueAxios {
17 static install: PluginFunction<AxiosInstance>;
18}
19
20export default VueAxios;