Checks if a Result is Result.Ok. Acts as a type guard, narrowing the
type to the success variant.
This function is essential for type-safe Result handling, allowing
TypeScript to understand that subsequent operations will work with the
success value rather than the error value.
Checks if a
Result
isResult.Ok
. Acts as a type guard, narrowing the type to the success variant.This function is essential for type-safe Result handling, allowing TypeScript to understand that subsequent operations will work with the success value rather than the error value.