Hyperlinkv0.8.0-beta.28

Schema

Schema.Encoderinterfaceeffect/Schema.ts:970
Encoder<E, RE>

A schema that tracks the encoded type E and the Effect services required during encoding (RE).

When to use

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

Source effect/Schema.ts:9706 lines
export interface Encoder<out E, out RE = never> extends Schema<unknown> {
  readonly "Encoded": E
  readonly "DecodingServices": unknown
  readonly "EncodingServices": RE
  readonly "Rebuild": Encoder<E, RE>
}