Package: effect
Module: SchemaTransformation
Transforms values without changing them, typed so that E extends T — the encoded
type is a subtype of the decoded type.
When to use
Use when you need a no-op schema transformation whose encoded side is more specific than its decoded side.
Details
passthrough).Example (Passing through subtypes)
import { SchemaTransformation } from "effect"
const t = SchemaTransformation.passthroughSubtype<string, "a" | "b">()
See
passthroughpassthroughSupertypeSignature
declare const passthroughSubtype: <T, E extends T>() => Transformation<T, E>
Since v4.0.0