Package: effect
Module: SchemaIssue
Union of all terminal (leaf) issue types that have no inner Issue children.
When to use
Use when constraining formatter hooks to only handle terminal nodes or when
pattern matching on the _tag of an issue and only leaf nodes matter.
Details
Members: InvalidType, InvalidValue, MissingKey,
UnexpectedKey, Forbidden, OneOf.
See
Issue — the full union including composite nodesLeafHook — formatter hook that operates on Leaf valuesSignature
type Leaf = | InvalidType
| InvalidValue
| MissingKey
| UnexpectedKey
| Forbidden
| OneOf
Since v4.0.0