Closed OliverJAsh closed 3 years ago
Here's a quick copy-paste implementation until this issue gets a proper PR:
export const chainW = <E, A, B>(
f: (a: A) => OBE.ObservableEither<E, B>
) => <D>(ma: OBE.ObservableEither<D, A>): OBE.ObservableEither<D | E, B> =>
OBE.chain(f)(ma as any)
This was recently added to types in fp-ts. It would be great to add it to
Observable
andObservableEither
.