effect-io-ai

Package: effect
Module: Micro

Micro.serviceOption

Access the given Context.Tag from the environment, without tracking the dependency at the type level.

It will return an Option of the service, depending on whether it is available in the environment or not.

Signature

declare const serviceOption: <I, S>(tag: Context.Tag<I, S>) => Micro<Option.Option<S>>

Source

Since v3.4.0