IFieldValidationResult

interface
Form & Input

Validation result for a single field — carries the field id and the list of error messages produced by its validation rules.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

id
required
number | string
Identifier of the field that was validated (matches the id used when registering with IFormProvide).
errorMessages
required
string[]
Array of error message strings produced by the field validation rules.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Reading per-field errors after form submission

typescript