Hyperlinkv0.8.0-beta.28

Schema

Schema.Decoderinterfaceeffect/Schema.ts:947
Decoder<T, RD>

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.

Source effect/Schema.ts:9476 lines
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>
}