Skip to content

TypeScript API / laikacms/core / LaikaTask / fromEffect

Function: fromEffect() ​

ts
function fromEffect<A, R>(eff): LaikaTask<A, R>;

Lift an Effect producing a value (and optional recoverable errors) into a LaikaTask.

Type Parameters ​

Type ParameterDefault type
A-
Rnever

Parameters ​

ParameterType
effEffect<{ recoverableErrors?: readonly LaikaError<ErrorCode, number>[]; value: A; }, LaikaError<ErrorCode, number>, R>

Returns ​

LaikaTask<A, R>

Released under the MIT License.