Checks if a Result is an Ok type. This is a type guard that narrows the type of result to Ok<T>.
Result
Ok
result
Ok<T>
The type of the successful value.
The type of the error value.
The result to check.
true if the result is Ok, false otherwise.
true
false
Checks if a
Result
is anOk
type. This is a type guard that narrows the type ofresult
toOk<T>
.