ConstraintEncoder<E, RE>Lightweight structural constraint for APIs that need encoder type views but do not need the full schema protocol.
When to use
Use when you need to preserve a schema's encoded type and encoding services,
but the API does not constrain the decoded type, decoding services, or call
schema methods such as annotate, check, rebuild, make, or
makeEffect.
export interface interface ConstraintEncoder<out E, out RE = never>Lightweight structural constraint for APIs that need encoder type views but
do not need the full schema protocol.
When to use
Use when you need to preserve a schema's encoded type and encoding services,
but the API does not constrain the decoded type, decoding services, or call
schema methods such as annotate, check, rebuild, make, or
makeEffect.
ConstraintEncoder<out function (type parameter) E in ConstraintEncoder<out E, out RE = never>E, out function (type parameter) RE in ConstraintEncoder<out E, out RE = never>RE = never> extends interface ConstraintCodec<out T, out E = T, out RD = never, out RE = never>Lightweight structural constraint for APIs that need codec type views but do
not need the full schema protocol.
When to use
Use when you need to preserve decoded type, encoded type, and service
requirements for a schema value, but the API does not call schema methods
such as annotate, check, rebuild, make, or makeEffect.
ConstraintCodec<unknown, function (type parameter) E in ConstraintEncoder<out E, out RE = never>E, unknown, function (type parameter) RE in ConstraintEncoder<out E, out RE = never>RE> {}