Interface DomainFailure

Represents a failed domain validation.

Type parameters

Type parameter Description
TDomainValue
TDomainError

correction

correction: TDomainValue

Returns the domain validation correction. This is the same as the value of the "correction" key in the domain validation function's return value.

see

ValidatorOptions.domain

error

error: TDomainError

Returns the domain validation error. This is the same as the value of the "error" key in the domain validation function's return value.

see

ValidatorOptions.domain

isError

isError: true

True for a failed validation. False otherwise.

Generated using TypeDoc