effect-io-ai

Package: effect
Module: Schema

Schema.Decoder

A schema that tracks the decoded type T and the Effect services required during decoding (RD).

When to use

Use when you need to preserve a schema’s decoded type and decoding service requirements, but do not need to constrain its encoded representation or encoding services.

See

Signature

export interface Decoder<out T, out RD = never> extends Schema<T> {
  readonly "Encoded": unknown
  readonly "DecodingServices": RD
  readonly "EncodingServices": unknown
  readonly "Rebuild": Decoder<T, RD>
}

Source

Since v4.0.0