Converting `Option<Effect<A, E, R>>` to `Effect<Option<A>, E, R>` in TypeScript
Anyone know a function that turns
I have considered flatten the Effect so I will have
Option<Effect<A, E, R>> to Effect<Option<A>, E, R> ? Typical use case:I have considered flatten the Effect so I will have
Effect<User, UnknownException | NoSuchElementException> but that is not good because, if tryPromise returns a NoSucheElement, I won't know if this is because tryPromise failed or maybeId that is None