UNPKG

355 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 namespace Vue {
12 const axios: AxiosInstance;
13 }
14
15}
16
17declare class VueAxios {
18 static install: PluginFunction<AxiosInstance>;
19}
20
21export = VueAxios