effect-io-ai

Package: effect
Module: Option

Option.void

Provides a pre-built Some(undefined) constant.

When to use

Use to return a “success with no meaningful value” from an Option-returning function

Example (Referencing Option.void)

import { Option } from "effect"

console.log(Option.void)
// Output: { _id: 'Option', _tag: 'Some', value: undefined }

See

Signature

declare const void: Option<void>

Source

Since v2.0.0