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 was having an issue with type checker complaining about incompatible input type of accumulator on when trying to use transduce to create function transforming array of values into representation of table rows.
After some investigation, I found what I believe to be a bug in definitions in transduce.d.ts.
When transduce is used as 4-ary and unary function, type V seems to be intended as type of accumulator:
It's been like that since we migrated all the types over from @types/ramda. Sure it was just an oversight from whomever created the type back then. Will try and get this updated for you
I was having an issue with type checker complaining about incompatible input type of accumulator on when trying to use
transduce
to create function transforming array of values into representation of table rows.After some investigation, I found what I believe to be a bug in definitions in
transduce.d.ts
.When
transduce
is used as 4-ary and unary function, typeV
seems to be intended as type of accumulator:but when used as binary and ternary function, accumulator has type
readonly T[]
:Shouldn't they be of type
V
instead?Edit: For reference this was on version 0.29.1.
The text was updated successfully, but these errors were encountered: