Package: effect
Module: SchemaGetter
Creates a getter that always returns None, effectively omitting the value from output.
When to use
Use when you need a schema getter to exclude a field during decoding or encoding.
Details
Option.None regardless of input.Example (Omitting a field during encoding)
import { SchemaGetter } from "effect"
const omitField = SchemaGetter.omit<string>()
See
transformOptional when you want conditional omissionforbidden when you want to fail instead of silently omitSignature
declare const omit: <T>() => Getter<never, T>
Since v4.0.0