The success leaf of a result. Carries a value (defaulting to void, so a valueless success is Ok<void>) and a success: true discriminant.
value
void
Ok<void>
success: true
The type of the success value.
Readonly
Discriminant marking this leaf as a success (always true).
true
The success value.
Type guard narrowing to Bad — always false for an Ok.
false
Ok
Type guard narrowing to Ok — always true for an Ok.
The success leaf of a result. Carries a
value(defaulting tovoid, so a valueless success isOk<void>) and asuccess: truediscriminant.