effect-io-ai

Package: effect
Module: Layer

Layer.scopedContext

Constructs a layer from the specified scoped effect, which must return one or more services.

Signature

declare const scopedContext: <A, E, R>(effect: Effect.Effect<Context.Context<A>, E, R>) => Layer<A, E, Exclude<R, Scope.Scope>>

Source

Since v2.0.0