> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/index-1/ok.md).

# ok

Namespace: `FsToolkit.ErrorHandling`

`ok` lifts a value into a successful `AsyncValidation`.

## Function Signature

```fsharp
'ok -> AsyncValidation<'ok, 'error>
```

## Examples

### Example 1

```fsharp
let result : AsyncValidation<int, string> =
    AsyncValidation.ok 42

// async { Ok 42 }
```

### Example 2

```fsharp
let result : AsyncValidation<string, string> =
    AsyncValidation.ok "hello"

// async { Ok "hello" }
```
