Skip to content

TypeScript API / laikacms/core / LaikaStream / fromEffect

Function: fromEffect() ​

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

Lift an Effect producing a single value, optional warnings, and a done value into a LaikaStream.

Type Parameters ​

Type ParameterDefault type
A-
D extends LaikaDone-
Rnever

Parameters ​

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

Returns ​

LaikaStream<A, D, R>

Released under the MIT License.