Package: effect
Module: SchemaGetter
Returns the identity getter typed for the relationship T extends E.
When to use
Use when you need a schema getter that passes values through when the decoded/output type is narrower than the encoded/input type.
Details
passthrough — no allocation, optimized in composition.Example (Passing through supertypes)
import { SchemaGetter } from "effect"
// string extends string, so this is valid
const g = SchemaGetter.passthroughSupertype<string, string>()
See
passthrough when types are identicalpassthroughSubtype when E extends TSignature
declare const passthroughSupertype: <T extends E, E>() => Getter<T, E>
Since v4.0.0