Package: effect
Module: Context
Performs a series of mutations on a Context. Prevents unnecessary copying
of the underlying map when multiple mutations are needed.
When to use
Use to apply several Context transformations in one callback while copying
the underlying service map only once.
See
add for adding or replacing a serviceaddOrOmit for adding or removing a service from an Optionmerge for combining two contextspick for keeping selected servicesomit for removing selected servicesSignature
declare const mutate: { <Services, B>(f: (context: Context<Services>) => Context<B>): <Services>(self: Context<Services>) => Context<B>; <Services, B>(self: Context<Services>, f: (context: Context<Services>) => Context<B>): Context<B>; }
Since v4.0.0