Skip to content

runValidators

runValidators<T>(value, validators): ValidationResult

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

Runs validators in order and returns the first non-passing result, defaulting to a valid result when every validator passes. A warning result does not short-circuit unless it is the only failure — error always wins.

T

T

Validator<T>[]

ValidationResult