effect-io-ai

Package: effect
Module: Layer

Layer.function

Constructs a layer from the context using the specified function.

Signature

declare const function: <I1, S1, I2, S2>(tagA: Context.Tag<I1, S1>, tagB: Context.Tag<I2, S2>, f: (a: Types.NoInfer<S1>) => Types.NoInfer<S2>) => Layer<I2, never, I1>

Source

Since v2.0.0