isSuccess<
T
>(result
):result is Success<T>
Defined in: functions/is-success.ts:23
Type guard to check if a Result is a Success.
T
The type of the success value.
Result
<T
, unknown
>
The Result to check.
result is Success<T>
true
if the result is a Success, otherwise false
.