Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 649 Bytes

types.validationresult.md

File metadata and controls

19 lines (11 loc) · 649 Bytes

Home > @skunkteam/types > ValidationResult

ValidationResult type

The possible return values inside validation and constraint functions.

Signature:

type ValidationResult = undefined | boolean | string | MessageDetails | Iterable<string | MessageDetails>;

References: MessageDetails

Remarks

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.