Package: effect
Module: Schema
The value a filter predicate (see makeFilter) may return.
Details
Each shape is normalized into an SchemaIssue.Issue (or undefined for
success) before being attached to the parse result:
undefined: success. The input satisfies the filter.true: success. Equivalent to undefined, useful when the predicate is
a plain boolean expression.false: generic failure. Produces an SchemaIssue.InvalidValue wrapping
the input, with no custom message.FilterIssue: a single failure. See FilterIssue for the
shapes (string, SchemaIssue.Issue, or { path, issue }).ReadonlyArray<FilterIssue>: several failures reported together. An
empty array is treated as success; a single-element array is equivalent
to returning that element directly; otherwise the entries are grouped
into an SchemaIssue.Composite.Signature
type FilterOutput = | undefined
| boolean
| FilterIssue
| ReadonlyArray<FilterIssue>
Since v3.10.0