A value that may or may not exist: a Some or a None. TypeScript narrows it across both branches of isSome() / isNone() and _tag checks. Variance comes from SomeOf and NoneOf, because a union type alias can't carry its own variance annotation.
isSome()
isNone()
_tag
The type of the value contained in the Option
A value that may or may not exist: a Some or a None. TypeScript narrows it across both branches of
isSome()/isNone()and_tagchecks. Variance comes from SomeOf and NoneOf, because a union type alias can't carry its own variance annotation.