Package: effect
Module: Effect
Gives a name to the success value of an Effect, creating a single-key
record used in do notation pipelines.
When to use
Use to start a do-notation pipeline from an existing Effect when its
success value should become the first named field in the accumulated record.
See
Do for starting from an empty accumulated recordbind for adding fields produced by effectsSignature
declare const bindTo: { <N extends string>(name: N): <A, E, R>(self: Effect<A, E, R>) => Effect<{ [K in N]: A; }, E, R>; <A, E, R, N extends string>(self: Effect<A, E, R>, name: N): Effect<{ [K in N]: A; }, E, R>; }
Since v2.0.0