Interface ParseSuccess

Describes a successful input value parsing

Type parameters

Type parameter Description
TDomainValue

domain

domain: TDomainValue

The resulting domain value. This is the same as the value of the "domain" key in the parse function's return value

see

ValidatorOptions.parse

isError

isError: false

True for a failed parsing, false otherwise.

isParsed

isParsed: boolean

True if the parse function returned a specific domain value. False if the parse function returned falsy, implying that the input value is the same as the domain value.

Generated using TypeDoc