Skip to content

eitherOf

eitherOf<R>(compute): Either<Error, R>

Defined in: src/util/Either.ts:145

Convert a thunk into Either<Error, R> — Right on return, Left with the thrown value (coerced to Error) on throw.

R

() => R

Either<Error, R>