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

# Type Alias: InferSome\<T>

> **InferSome**\<`T`> = \[`T`] _extends_ \[(...`args`) => [`OptionMaybeAsync`](/api/types/Option.OptionMaybeAsync.md)\<infer U>] ? `U` : \[`T`] _extends_ \[[`OptionMaybeAsync`](/api/types/Option.OptionMaybeAsync.md)\<infer U>] ? `U` : `never`

Infers the [Some](/api/types/Option.Some.md) value type `T` from an Option or a function returning an Option.

## Type Parameters

### T

`T`

An [OptionMaybeAsync](/api/types/Option.OptionMaybeAsync.md) type or a function returning it.

## Example

```ts
import { Option } from 'byenull';

type A = Option.InferSome<Option.Option<number>>; // number
type B = Option.InferSome<Option.OptionAsync<number>>; // number
type C = Option.InferSome<() => Option.Option<number>>; // number
```
