-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Promise<T> should be Promise<T1,T2> #22162
Comments
Do you intend the second type (call it I think rather than making promises (pun intended) the checker can't keep, they just treat the error type as |
@jack-williams yeah at the moment, mixing resolved type with rejected type is making me a little crazy upstairs |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
Sorry if this is a dupe issue, but I am having trouble determining how to solve some typing issues surrounding promises.
If we have a method:
I am really really confused, why the typings for Promises don't take two parameters, should it not be:
Currently, I am trying to solve this SO issue, and yet again the problem of specifying the different resolution types is coming up. I guess I just want to know why it is this way.
https://stackoverflow.com/questions/48954365/use-generics-to-specify-type-of-return-value/48958224
The text was updated successfully, but these errors were encountered: