> For AI agents: the complete documentation index is available at /byethrow/llms.txt, the full documentation bundle is available at /byethrow/llms-full.txt.

# Function: isSuccess()

> **isSuccess**\<`R`>(`result`): `result is Extract<R, { type: "Success" }>`

Type guard to check if a [Result](/byethrow/api/types/Result.Result.md) is a [Success](/byethrow/api/types/Result.Success.md).

## Type Parameters

### R

`R` _extends_ [`Result`](/byethrow/api/types/Result.Result.md)\<`unknown`, `unknown`>

The type of the result to check.

## Parameters

### result

`R`

The [Result](/byethrow/api/types/Result.Result.md) to check.

## Returns

`result is Extract<R, { type: "Success" }>`

`true` if the result is a [Success](/byethrow/api/types/Result.Success.md), otherwise `false`.

## Example

```ts
import { Result } from '@praha/byethrow';

const result: Result.Result<number, string> = { type: 'Success', value: 10 };
if (Result.isSuccess(result)) {
  console.log(result.value); // Safe access to value
}
```
