-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Typescript chooses wrong overload for RxJs's reduce call #22083
Comments
Getting the types right for this method has been a pain. It's not really a typescript issue. You can read about it starting with this issue and then follow the thread of referenced tissues and PRS ReactiveX/rxjs#2338 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScript Version: typescript@2.8.0-dev.20180221
Search Terms:
rxjs reduce overload
Code
Go to definition leads to
Expected behavior:
No errors
Actual behavior:
Reproduction: https://github.com/WiseBird/ts_rxjs_reduce
More info
I also try letable operators with the same effect:
Apparently ts chooses wrong overload and uses seed's type for value's type.
With simplified typings ts works OK:
Go to declaration leads to
The text was updated successfully, but these errors were encountered: