Aller au contenu principal

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