1 | import { AxiosStatic } from "axios";
|
2 |
|
3 | import { App } from "vue";
|
4 |
|
5 | declare 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 |
|
16 | declare module 'vue/types/vue' {
|
17 | interface Vue {
|
18 | $http: AxiosStatic;
|
19 | axios: AxiosStatic;
|
20 | }
|
21 |
|
22 | interface VueConstructor {
|
23 | axios: AxiosStatic;
|
24 | }
|
25 | }
|
26 |
|
27 | declare function VueAxios(app: App, axios: AxiosStatic): void;
|
28 |
|
29 | export default VueAxios;
|