Skip to content

bindTo

bindTo<K>(key): <A>(data) => Task<{ [P in string]: A }>

Defined in: Core/Task.ts:531

Converts a Task value into an object containing a single property. Initiates the pipeline accumulator record.

K extends string

K

<A>(data) => Task<{ [P in string]: A }>

pipe(Task.resolve(42), Task.bindTo("value")); // Task({ value: 42 })