Successful result carrying value.
value
Readonly
Always false — use this to narrow the union to OkResult<T>.
false
OkResult<T>
Always true — use this to narrow the union to OkResult<T>.
true
The success value.
Calls fn(value) and returns its Result.
fn(value)
Returns an OkResult with fn(value).
OkResult
Returns this unchanged.
this
Calls onOk and returns its result.
onOk
Returns value.
Successful result carrying
value.