You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suppose that should be because some throw, like in the case of
See #331. In order to call promise on a Future, the rejection branch must now be compatible with type Error, and thrown exceptions are now merged with the rejection branch, instead of being rethrown.
but not sure if that's a problem of fold
Also in general add the generic <T> as late as possible has proven to be more effective, with the fluture@12.0.0-beta.3 i needed to type way more functions, specially fold and bimap. when i change bimap to
- Revert #230 and reintroduce the usage of the 'never' type
- Relax the signature of chain and chainRej to allow TypeScript to
derive types when merging a Future of a never with a Future of a
real type. Closes#337 and closes#370.
- Move generic types closer to where they are used in the function
signature. Closes#372 and closes#373 through supersession.
Co-authored-by: Edgar Rodriguez <edgarj.rodriguezg@gmail.com>
Originally posted by @edgarjrg in #370 (comment)
The text was updated successfully, but these errors were encountered: