Skip to main content

of()

const of: <E, A>(a) => TaskEither<E, A> = right

Alias for right.

Creates a TaskEither that resolves to a Right.


Type Parametersโ€‹

E: E = neverโ€‹

The error type.

A: A = neverโ€‹

The success type.


Parametersโ€‹

a: Aโ€‹

The success value.


Returns: TaskEither<E, A>โ€‹

A TaskEither containing the Right.


Sinceโ€‹

2.0.0