effect-io-ai

Package: effect
Module: STM

STM.mapInputContext

Transforms the environment being provided to this effect with the specified function.

Signature

declare const mapInputContext: { <R0, R>(f: (context: Context.Context<R0>) => Context.Context<R>): <A, E>(self: STM<A, E, R>) => STM<A, E, R0>; <A, E, R0, R>(self: STM<A, E, R>, f: (context: Context.Context<R0>) => Context.Context<R>): STM<A, E, R0>; }

Source

Since v2.0.0