-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Stop using user-assignable type generics in the types of functions that don't do anything with them #337
Comments
TypeScript 3.4 introduces higher order type inference from generic functions. This might make the need for using anything but an undetermined type variable/generic unnecessary. I should do some experiments with this. |
In response to #370 (comment) I tried a simple thing myself, and it seems With
|
It seems that |
- 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>
Yes i agree that neither of the types work right now. |
This is an alternative to #230 made possible by the introduction of the
unknown
type.See also #334 (comment).
See also #370 (comment).
The text was updated successfully, but these errors were encountered: