effect-io-ai

Package: effect
Module: Micro

Micro.either

Replace the success value of the given Micro effect with an Either, wrapping the success value in Right and wrapping any expected errors with a Left.

Signature

declare const either: <A, E, R>(self: Micro<A, E, R>) => Micro<Either.Either<A, E>, never, R>

Source

Since v3.4.0