mobily / ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.
https://mobily.github.io/ts-belt
MIT License
1.12k stars 31 forks source link

uniqBy has an incorrect type #1

Closed user753 closed 2 years ago

user753 commented 2 years ago
function uniqBy<A>(xs: ReadonlyArray<A>, uniqFn: (_1: A) => A): ReadonlyArray<A>

instead of

function uniqBy<A, B>(xs: ReadonlyArray<A>, uniqFn: (_1: A) => B): ReadonlyArray<A>
mobily commented 2 years ago

hey @user753 👋 thanks for reporting! it's been fixed in https://github.com/mobily/ts-belt/commit/07cf8138215e4f907daa555932af7d223d36fe02 and published in v3.0.1