Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Property '$http' must be of type 'AxiosInstance' #715

Open
Dids opened this issue Dec 13, 2018 · 0 comments
Open

Property '$http' must be of type 'AxiosInstance' #715

Dids opened this issue Dec 13, 2018 · 0 comments

Comments

@Dids
Copy link

Dids commented Dec 13, 2018

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;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant