ConstraintDecoder<T, RD>Lightweight structural constraint for APIs that need decoder type views but do not need the full schema protocol.
When to use
Use when you need to preserve a schema's decoded type and decoding services,
but the API does not constrain the encoded type, encoding services, or call
schema methods such as annotate, check, rebuild, make, or
makeEffect.
export interface interface ConstraintDecoder<out T, out RD = never>Lightweight structural constraint for APIs that need decoder type views but
do not need the full schema protocol.
When to use
Use when you need to preserve a schema's decoded type and decoding services,
but the API does not constrain the encoded type, encoding services, or call
schema methods such as annotate, check, rebuild, make, or
makeEffect.
ConstraintDecoder<out function (type parameter) T in ConstraintDecoder<out T, out RD = never>T, out function (type parameter) RD in ConstraintDecoder<out T, out RD = never>RD = 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<function (type parameter) T in ConstraintDecoder<out T, out RD = never>T, unknown, function (type parameter) RD in ConstraintDecoder<out T, out RD = never>RD, unknown> {}