results-ts / Option
Option<
T> =SomeOption<T> |NoneOption<T>
Defined in: option.ts:41
Option<T> is either Some(value) with a value of type T, or None.
Use match to handle both variants.
Invalid callbacks and operands throw errors. Callback exceptions propagate.
and, or, xor, and zip return an AsyncOption for promise-like operands.
They capture the receiver's state at invocation and resolve the operand even
when its value is unused. Operand rejections propagate.
T
The contained value type.