Skip to content

Make `ResultAsync.fromPromise` and `ResultAsync.fromSafePromise` less strict!

Compare
Choose a tag to compare
@supermacro supermacro released this 10 Jul 16:50
· 208 commits to master since this release

Thanks to @bhvngt for this submission.

ResultAsync.fromPromise and ResultAsync.fromSafePromise are now able to accept anything that implements the PromiseLike interface - in other words; anything that is "thenable". This includes objects such as Bluebird Promises and any other non-native promise-like object!