effect-io-ai

Package: effect
Module: Schema

Schema.OptionIso

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.

Signature

type OptionIso<A> = | { readonly _tag: "None" }
  | { readonly _tag: "Some"; readonly value: A["Iso"] }

Source

Since v4.0.0