index.d.ts 366 Bytes
Newer Older
liang ce committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import Vue, {PluginFunction, PluginObject} from "vue";
import {AxiosInstance} from "axios";

declare module "vue/types/vue" {

  interface Vue {
    axios: AxiosInstance;
    $http: AxiosInstance;
  }

  interface VueConstructor {
    axios: AxiosInstance;
  }
}

declare class VueAxios {
  static install: PluginFunction<AxiosInstance>;
}

export default VueAxios;