Hyperlinkv0.8.0-beta.28

Option

Option.OptionUnifyinterfaceeffect/Option.ts:157
OptionUnify<A>

Type-level unification support for Option values.

When to use

Use when extending Effect's type-level unification support for Option.

Details

This is used by Effect's Unify machinery to preserve the contained value type when generic code returns or combines Option values. Users normally do not need to reference this interface directly.

models
Source effect/Option.ts:1573 lines
export interface OptionUnify<A extends { [Unify.typeSymbol]?: any }> {
  Option?: () => A[Unify.typeSymbol] extends Option<infer A0> | infer _ ? Option<A0> : never
}
Referenced by 3 symbols