# asEffectOption

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-types](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types.md) / asEffectOption

# Function: asEffectOption()

> **asEffectOption**<`T`>(`obj`): `Option`<`T`>

Wraps an object into an `Option.some`.

## Type Parameters[​](#type-parameters "Direct link to Type Parameters")

### T[​](#t "Direct link to T")

`T`

## Parameters[​](#parameters "Direct link to Parameters")

### obj[​](#obj "Direct link to obj")

`unknown`

The value that should be wrapped into an `Option`.

## Returns[​](#returns "Direct link to Returns")

`Option`<`T`>

An `Option.some` for `obj`.
