Property '$http' must be of type 'AxiosInstance'
Dids opened this issue · comments
The TypeScript definitions are conflicting with vue-axios
:
ERROR in /Users/dids/<project>/node_modules/vue-resource/types/vue.d.ts
16:9 Subsequent property declarations must have the same type. Property '$http' must be of type 'AxiosInstance', but here has type '{ (options: HttpOptions): PromiseLike<HttpResponse
>; get: $http; post: $http; put: $http; patch: $http; delete: $http; jsonp: $http; }'.
14 | declare module "vue/types/vue" {
15 | interface Vue {
> 16 | $http: {
| ^
17 | (options: HttpOptions): PromiseLike<HttpResponse>;
18 | get: $http;
19 | post: $http;