TreeValidationResult
타입 별칭
안정화v22.0부터
The result of running a tree validation function.
API
type TreeValidationResult<E extends ValidationError.WithOptionalFieldTree = ValidationError.WithOptionalFieldTree> = ValidationSuccess | OneOrMany<E>
설명
The result of running a tree validation function.
The result may be one of the following:
- A
ValidationSuccessto indicate no errors. - A
ValidationErrorwithout a field to indicate an error on the field being validated. - A
ValidationErrorwith a field to indicate an error on the target field. - A list of
ValidationErrorwith or without fields to indicate multiple errors.
상세 내용으로 이동