OptionIso<A>Iso representation used for Option schemas.
Details
None is represented as { _tag: "None" }, while Some is represented as
{ _tag: "Some", value } using the wrapped schema's Iso type.
Option
Source effect/Schema.ts:85373 lines
export type type OptionIso<A extends Constraint> =
| {
readonly _tag: "None"
}
| {
readonly _tag: "Some"
readonly value: A["Iso"]
}
Iso representation used for Option schemas.
Details
None is represented as { _tag: "None" }, while Some is represented as
{ _tag: "Some", value } using the wrapped schema's Iso type.
OptionIso<function (type parameter) A in type OptionIso<A extends Constraint>A extends Constraint> =
| { readonly _tag: "None"_tag: "None" }
| { readonly _tag: "Some"_tag: "Some"; readonly value: A["Iso"]value: function (type parameter) A in type OptionIso<A extends Constraint>A["Iso"] }Referenced by 1 symbols