method Result.prototype.isOk Result.prototype.isOk(): this is Result<T, never> Type guard to check if this Result is Ok. Examples Example 1 const result = Result.ok(42); if (result.isOk()) { // TypeScript knows result is Ok here } Return Type this is Result<T, never> True if this result is Ok, false otherwise