effect-io-ai

Package: effect
Module: Micro

Micro.fromOption

Converts an Option into a Micro effect, that will fail with NoSuchElementException if the option is None. Otherwise, it will succeed with the value of the option.

Signature

declare const fromOption: <A>(option: Option.Option<A>) => Micro<A, NoSuchElementException>

Source

Since v3.4.0