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
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
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: