In many cases TS can not correctly infer Array vs Object types which becomes problematic for map, filter and maybe few other highly polymorphic functions.
Rambda already have mapArray + mapObject functions and implements map in their terms.
They are even exported but, unfortunately, untyped.
As a relatively low effort solution, can we add those types to allow end users to decide whether they want to use map or mapObject directly?
In many cases TS can not correctly infer
ArrayvsObjecttypes which becomes problematic formap,filterand maybe few other highly polymorphic functions.Rambda already have
mapArray+mapObjectfunctions and implementsmapin their terms.They are even exported but, unfortunately, untyped.
As a relatively low effort solution, can we add those types to allow end users to decide whether they want to use
mapormapObjectdirectly?