UNPKG

525 BTypeScriptView Raw
1import { AxiosStatic } from "axios";
2// @ts-ignore
3import { App } from "vue";
4
5declare module "@vue/runtime-core" {
6 export interface ComponentCustomProperties {
7 $http: AxiosStatic;
8 axios: AxiosStatic;
9 }
10
11 export interface App {
12 axios: AxiosStatic;
13 }
14}
15
16declare module 'vue/types/vue' {
17 interface Vue {
18 $http: AxiosStatic;
19 axios: AxiosStatic;
20 }
21
22 interface VueConstructor {
23 axios: AxiosStatic;
24 }
25}
26
27declare function VueAxios(app: App, axios: AxiosStatic): void;
28
29export default VueAxios;