Package: effect
Module: Channel
Wraps each output element in an object under the specified field name.
When to use
Use when you need to start a Channel Do-notation chain from an existing output value by assigning that value to a field name.
See
Do for starting Do notation from an empty objectbind for adding a field produced by another channellet for adding a computed fieldSignature
declare const bindTo: { <N extends string>(name: N): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<{ [K in N]: OutElem; }, OutErr, OutDone, InElem, InErr, InDone, Env>; <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, N extends string>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>, name: N): Channel<{ [K in N]: OutElem; }, OutErr, OutDone, InElem, InErr, InDone, Env>; }
Since v4.0.0