Type alias Either<L, R>

Either<L, R>: Left<L> | Right<R>

Either type.

Can represent either a left or a right value. Used often in error handling where something can either succeede(R) or fail(L).

Type Parameters

  • L

    the left value type

  • R

    the right value type

Generated using TypeDoc