Package: effect
Module: Schema
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.
See
Codec for preserving both decoded and encoded type information.Decoder for the decode-only view.Signature
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>
}
Since v4.0.0