Hyperlinkv0.8.0-beta.28

Schema

Schema.ConstraintEncoderinterfaceeffect/Schema.ts:751
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.

Source effect/Schema.ts:7511 lines
export interface ConstraintEncoder<out E, out RE = never> extends ConstraintCodec<unknown, E, unknown, RE> {}
Referenced by 18 symbols