Add functional helpers like map, mapErr, biMap (match), flatMap (andThen) etc that can work with both Result... and Promise<Result...
Add .pipe function on Ok and Err, and Promise, pretty much as implemented in rxjs: accept to pass N amount of continuation functions with signature: (previous) => next
One way I was able to deal with 'callback hell':
map
,mapErr
,biMap
(match
),flatMap
(andThen
) etc that can work with bothResult...
andPromise<Result...
.pipe
function onOk
andErr
, andPromise
, pretty much as implemented in rxjs: accept to pass N amount of continuation functions with signature:(previous) => next
so now I can:
(with full Typescript typing support btw!)
Thinking about releasing it to GitHub and npm at some point :)