OptionTypeLambdaType lambda interface for higher-kinded type encodings with Option.
When to use
Use when defining higher-kinded abstractions that must accept optional-value types as one of their type-lambda inputs.
type lambdas
Source effect/Option.ts:2243 lines
export interface OptionTypeLambda extends import TypeLambdaTypeLambda {
readonly OptionTypeLambda.type: Option<this["Target"]>type: type Option<A> = None<A> | Some<A>The Option data type represents optional values. An Option<A> is either
Some<A>, containing a value of type A, or None, representing absence.
When to use
Use to represent initial values that may not yet exist
- Returning from partial functions (not defined for all inputs)
- Managing optional fields in data structures
Namespace containing utility types for Option.
When to use
Use to access type-level helpers associated with Option.
Option<this["Target"]>
}Referenced by 3 symbols