(issue: Leaf): stringCallback type used to format Leaf issues into strings.
When to use
Use when customizing how makeFormatterStandardSchemaV1 renders terminal issues.
Source effect/SchemaIssue.ts:8621 lines
export type type LeafHook = (issue: Leaf) => stringCallback type used to format
Leaf
issues into strings.
When to use
Use when customizing how
makeFormatterStandardSchemaV1
renders
terminal issues.
LeafHook = (issue: Leafissue: type Leaf =
| InvalidType
| InvalidValue
| MissingKey
| UnexpectedKey
| Forbidden
| OneOf
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
.
Leaf) => stringReferenced by 3 symbols