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

# Type Alias: OptionFor\<O, T>

> **OptionFor**\<`O`, `T`> = `true` _extends_ `HasPromise`\<`O`> ? [`OptionAsync`](/api/types/Option.OptionAsync.md)\<`T`> : [`Option`](/api/types/Option.Option.md)\<`T`>

Resolves to the appropriate Option type (sync or async) based on the input type.

## Type Parameters

### O

`O`

The reference type to inspect for a Promise.

### T

`T`

The type of the [Some](/api/types/Option.Some.md) value.
