Hyperlinkv0.8.0-beta.28

Schema

Schema.OptionIsotypeeffect/Schema.ts:8537
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 OptionIso<A extends Constraint> =
  | { readonly _tag: "None" }
  | { readonly _tag: "Some"; readonly value: A["Iso"] }
Referenced by 1 symbols