Skip to content

TypeScript API / laikacms/core / LaikaTask / runValue

Function: runValue() ​

ts
function runValue<A, R>(self): Effect<A, LaikaError<ErrorCode, number>, R>;

Drain a LaikaTask ignoring metadata; return only the resolved value.

Use in non-delegation contexts (test code, top-level runners) where the caller genuinely doesn't care about recoverable warnings or progress. When the caller is itself a LaikaTask.make body delegating to another task, use runValueForwarding instead — otherwise the inner task's recoverable warnings die at the delegation boundary.

Type Parameters ​

Type Parameter
A
R

Parameters ​

ParameterType
selfLaikaTask<A, R>

Returns ​

Effect<A, LaikaError<ErrorCode, number>, R>

Released under the MIT License.