Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 637 Bytes

types.validationresult.md

File metadata and controls

19 lines (11 loc) · 637 Bytes

Home > @skunkteam/types > ValidationResult

ValidationResult type

The possible return values inside validation and constraint functions.

Signature:

export declare type ValidationResult = boolean | string | MessageDetails | Array<string | MessageDetails>;

References: MessageDetails

Remarks

The validation is considered a success if the result is true or an empty array, anything else is considered to be a failure.