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
Expected behavior:
Code using reduce with a different seed type from the element type of the observable type checks correctly, resolving the type of the seed from the second type argument, R, in the overload set. Actual behavior:
The overload set of the reduce operator is incorrect. The declarations are in the wrong order of specificity with respect to the types of their arguments and their type argument count.
Additional information:
I came across this bug when looking at a stackoverflow question http://stackoverflow.com/q/42080580/1915893
The overloads need to be declared in the reverse of their current order. Specifically, the first of the three signatures needs to be the last and the last needs to be the first.
The text was updated successfully, but these errors were encountered:
RxJS version: 5.1.0
Code to reproduce:
Expected behavior:
Code using reduce with a different seed type from the element type of the observable type checks correctly, resolving the type of the seed from the second type argument,
R
, in the overload set.Actual behavior:
The overload set of the reduce operator is incorrect. The declarations are in the wrong order of specificity with respect to the types of their arguments and their type argument count.
Additional information:
I came across this bug when looking at a stackoverflow question
http://stackoverflow.com/q/42080580/1915893
The overloads need to be declared in the reverse of their current order. Specifically, the first of the three signatures needs to be the last and the last needs to be the first.
The text was updated successfully, but these errors were encountered: