/** * Extends interfaces in Vue.js */ import Vue from "vue"; import { HttpHeaders, HttpOptions, HttpResponse, $http, $resource } from "./index"; declare module "vue/types/options" { interface ComponentOptions { http?: (HttpOptions & { headers?: HttpHeaders } & { [key: string]: any }) } } declare module "vue/types/vue" { interface Vue { $http: { (options: HttpOptions): PromiseLike; get: $http; post: $http; put: $http; patch: $http; delete: $http; jsonp: $http; }; $resource: $resource; } }