effect-io-ai

Package: effect
Module: Schema

Schema.toIso

Derives an Iso optic from a schema that isomorphically converts between the schema’s Type and its Iso (intermediate / serialized form).

Signature

declare const toIso: <S extends Constraint>(schema: S) => Optic_.Iso<S["Type"], S["Iso"]>

Source

Since v4.0.0