effect-io-ai

Package: effect
Module: Option

Option.none

Creates an Option representing the absence of a value.

When to use

Use to represent a missing or uninitialized value, such as returning “no result” from a function.

Details

Example (Creating an empty Option)

import { Option } from "effect"

//      ┌─── Option<never>
//      ▼
const noValue = Option.none()

console.log(noValue)
// Output: { _id: 'Option', _tag: 'None' }

See

Signature

declare const none: <A = never>() => Option<A>

Source

Since v2.0.0