Represents the result of a validation operation.
This type can either indicate a successful validation with valid: true, or a failed validation with valid: false and an accompanying error message.
valid: true
valid: false
Represents the result of a validation operation.
This type can either indicate a successful validation with
valid: true, or a failed validation withvalid: falseand an accompanying error message.