-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Error type is unknown, not Error
?
#25
Comments
Yeah, seems reasonable. |
I'm not familiar with Flow so I'm not quite sure what the equivalent to TypeScript's |
Closing all old issues as we're making significant changes. Please open a new issue if this is still a problem you'd like to have fixed. |
@OliverJAsh This should have been fixed in version >= 3.1.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the types, the error is typed as
Error
. However, in JS any type can be thrown, e.g.throw "foo";
.Should we correct the type of the error to
unknown
(in TypeScript terms), or is there something that converts it to anError
?The text was updated successfully, but these errors were encountered: