effect-io-ai

Package: effect
Module: Micro

Micro.option

Replace the success value of the given Micro effect with an Option, wrapping the success value in Some and returning None if the effect fails with an expected error.

Signature

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

Source

Since v3.4.0