Skip to content

Coerced

The object that the validate function of a facet returns when the value is accepted, but another value must be kept in its place. The other possible answers are valid() and invalid(issue).

A plugin builds this object with coerced(value), and the documentation of that function contains an example.

readonly coerced: unknown;

The value to keep instead of the value that was given.