Package: effect
Module: Option
Represents the presence of a value within an Option.
When to use
Use as a type guard target when narrowing via isSome
.valueDetails
_tag is always "Some".value holds the contained value of type APipeable, Inspectable, and structural equalitySee
isSome to check if an Option is Somesome to construct a SomeSignature
export interface Some<out A> extends Pipeable, Inspectable {
readonly _tag: "Some"
readonly _op: "Some"
readonly value: A
readonly valueOrUndefined: A
readonly [TypeId]: {
readonly _A: Covariant<A>
}
[Symbol.iterator](): OptionIterator<Option<A>>
[Unify.typeSymbol]?: unknown
[Unify.unifySymbol]?: OptionUnify<this>
[Unify.ignoreSymbol]?: OptionUnifyIgnore
}
Since v2.0.0