vue-resource icon indicating copy to clipboard operation
vue-resource copied to clipboard

Catch is not recognized in promise

Open tbhaxor opened this issue 5 years ago • 0 comments

Reproduction Link

Private Project, Can't Give

Steps to reproduce

  1. Setup typescript project with vue-cli
  2. Register the plugin
  3. Send any request from *.vue file
  4. Now use promises .then and .catch

What is Expected?

Should also show .catch. Use Promise instead of PromiseLike

https://github.com/pagekit/vue-resource/blob/develop/types/vue.d.ts#L17

- (options: HttpOptions): PromiseLike<HttpResponse>;
+ (options: HttpOptions): Promise<HttpResponse>;

What is actually happening?

.catch not showing

tbhaxor avatar Oct 28 '20 15:10 tbhaxor