Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function eitherToFuture(either: Apropos): Fluture {
return Future((rj, rs) => {
either.bitap(rj, rs)
})
}
export function FutureFold(
fn: (rj: (err: Reject) => void,
rs: (data: Resolve) => void
) => ((() => void) | void)
): Fluture, void> {
const future: Fluture = Future(fn)
const futureFold: Fluture, void> = folding(future)
return futureFold
}