PhoneValidationResult
type PhoneValidationResult = { errorMessage?: string; isValid: boolean;};Phone number validation result. isValid is the bare fact (reveal-independent, drives e.g. a
submit button); errorMessage is the localized reason, present only when a failure is revealed.
Properties
Section titled “Properties”| Property | Type |
|---|---|
errorMessage? |
string |
isValid |
boolean |