* Checks whether the result is a failure. * * @returns `true` if the result is `fail`, otherwise `false`. * Acts as a type guard to narrow the type to a failed result.
()
| 56 | * Acts as a type guard to narrow the type to a failed result. |
| 57 | */ |
| 58 | public isFail(): this is { _error: TError } & Result<TValue, TError> { |
| 59 | return !this._isOk; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Gets the value inside a successful result. |
no outgoing calls