Skip to main content

asEffectOption

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / asEffectOption

Function: asEffectOption()

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

Wraps an object into an Option.some.

Type Parameters​

T​

T

Parameters​

obj​

unknown

The value that should be wrapped into an Option.

Returns​

Option<T>

An Option.some for obj.