gigobyte / purify

Functional programming library for TypeScript - https://gigobyte.github.io/purify/
ISC License
1.5k stars 58 forks source link

Fix EitherAsync.mapLeft not awaiting result #645

Closed Quaqqer closed 1 year ago

Quaqqer commented 1 year ago

Hi, very nice library!

I discovered what I believe to be an error, mapLeft in EitherAsync does never actually await the result, so I added an await. Added a test that would fail prior as well.