(value: Issue): FormatSource effect/SchemaIssue.ts:8461 lines
export interface interface Formatter<out Format>A function type that converts an
Issue
into a formatted
representation. Specialisation of the generic Formatter from
Formatter.ts with Value fixed to Issue.
Formatter<out function (type parameter) Format in Formatter<out Format>Format> extends import FormatterIFormatterI<type Issue =
| Leaf
| Filter
| Encoding
| Pointer
| Composite
| AnyOf
The root discriminated union of all validation error nodes.
When to use
Use when typing the error channel in Effect<A, Issue, R> results from
schema parsing, or when writing custom formatters or issue-tree walkers.
Details
Every node has a _tag field for pattern-matching. The union includes both
terminal
Leaf
types and composite types that wrap inner issues:
Filter
,
Encoding
,
Pointer
,
Composite
,
AnyOf
. All Issue instances have a toString() that delegates to
the default formatter, so String(issue) produces a human-readable message.
Issue, function (type parameter) Format in Formatter<out Format>Format> {}Referenced by 2 symbols