Hyperlinkv0.8.0-beta.28

Schema

Schema.ConstraintCodecinterfaceeffect/Schema.ts:708
ConstraintCodec<T, E, RD, RE>

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.

Source effect/Schema.ts:7086 lines
export interface ConstraintCodec<out T, out E = T, out RD = never, out RE = never> extends Constraint {
  readonly "Type": T
  readonly "Encoded": E
  readonly "DecodingServices": RD
  readonly "EncodingServices": RE
}
Referenced by 7 symbols