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