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

Catch is not recognized in promise #747

Open
tbhaxor opened this issue Oct 28, 2020 · 0 comments
Open

Catch is not recognized in promise #747

tbhaxor opened this issue Oct 28, 2020 · 0 comments

Comments

@tbhaxor
Copy link

tbhaxor commented Oct 28, 2020

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

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