Skip to content

ValidationResult

Defined in: src/widgets/controls/validation.ts:8

Normalized result of validating a single field.

optional message?: string

Defined in: src/widgets/controls/validation.ts:12

Message to show when invalid (or for a success/warning note).


optional severity?: Severity

Defined in: src/widgets/controls/validation.ts:14

Severity driving the control’s color (defaults to "error" when invalid).


valid: boolean

Defined in: src/widgets/controls/validation.ts:10

Whether the value passed.