-
Notifications
You must be signed in to change notification settings - Fork 471
findBy* typings: Remove Error as a possible return value #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
findBy* typings: Remove Error as a possible return value #239
Conversation
https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.promise.d.ts#L13 This looks correct, you can't type the rejected value of a Promise (thought you could 😅), and the error is not a return value, it's an exception. So:
|
Codecov appears to be having issues https://status.codecov.io/ but this looks safe to merge when it's back up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this, I was on the fence about including the | Error
but ultimately assumed there were more implementation details under the hood I wasn't across. Glad you were able to fix that one up.
Thanks! @allcontributors[bot], please add @bopfer for test |
I've put up a pull request to add @bopfer! 🎉 |
@allcontributors[bot], please add @JaxCavalera for review |
I've put up a pull request to add @JaxCavalera! 🎉 |
Whoops, let me try that again.. @allcontributors[bot], please add @JaxCavalera for review |
I've put up a pull request to add @JaxCavalera! 🎉 |
One last time! @allcontributors[bot], please add @JaxCavalera for review |
I've put up a pull request to add @JaxCavalera! 🎉 |
🎉 This PR is included in version 3.19.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What:
| Error
from findBy* return typings.Why:
How:
| Error
.Checklist: