ValidationResult
타입 별칭
안정화v22.0부터
A validation result where all errors explicitly define their target field.
API
type ValidationResult<E extends ValidationError = ValidationError> = ValidationSuccess | OneOrMany<E>
설명
A validation result where all errors explicitly define their target field.
The result may be one of the following:
- A
ValidationSuccessto indicate no errors. - A
ValidationErrorwith a field to indicate an error on the target field. - A list of
ValidationErrorwith fields to indicate multiple errors.
상세 내용으로 이동