diff --git a/types/vue.d.ts b/types/vue.d.ts index 8a34ac6a..6046c56a 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -14,7 +14,7 @@ declare module "vue/types/options" { declare module "vue/types/vue" { interface Vue { $http: { - (options: HttpOptions): PromiseLike; + (options: HttpOptions): Promise; get: $http; post: $http; put: $http; diff --git a/types/vue_resource.ts b/types/vue_resource.ts index 2adca137..939c90a2 100644 --- a/types/vue_resource.ts +++ b/types/vue_resource.ts @@ -38,8 +38,8 @@ export interface HttpOptions { } export interface $http { - (url: string, data?: any, options?: HttpOptions): PromiseLike; - (url: string, options?: HttpOptions): PromiseLike; + (url: string, data?: any, options?: HttpOptions): Promise; + (url: string, options?: HttpOptions): Promise; } export interface HttpInterceptor { @@ -69,9 +69,9 @@ export interface ResourceActions { } export interface ResourceMethod { - (params: any, data?: any, success?: Function, error?: Function): PromiseLike; - (params: any, success?: Function, error?: Function): PromiseLike; - (success?: Function, error?: Function): PromiseLike; + (params: any, data?: any, success?: Function, error?: Function): Promise; + (params: any, success?: Function, error?: Function): Promise; + (success?: Function, error?: Function): Promise; } export interface ResourceMethods {