Catch is not recognized in promise
tbhaxor opened this issue · comments
Reproduction Link
Private Project, Can't Give
Steps to reproduce
- Setup typescript project with vue-cli
- Register the plugin
- Send any request from *.vue file
- 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