Class Either<ValueT, ErrorT>
Constructors
constructor
- new Either<ValueT, ErrorT>(value: ValueT, error: ErrorT): Either<ValueT, ErrorT>
-
Parameters
-
value: ValueT
-
error: ErrorT
Returns Either<ValueT, ErrorT>
Properties
Readonly
error
error: ErrorT
Readonly
value
value: ValueT
Methods
mustValue
- mustValue(): ValueT
-
Returns ValueT
Represent either a result, or an error.