Home > @skunkteam/types > ValidationResult
The possible return values inside validation and constraint functions.
Signature:
type ValidationResult = undefined | boolean | string | MessageDetails | Iterable<string | MessageDetails>;
References: MessageDetails
The validation is considered a success if the result is true
or undefined
or an empty iterator, anything else is considered to be a failure.