ts-phonenumber - v2.0.0
    Preparing search index...

    Interface ValidationResult

    Result of a validation operation.

    interface ValidationResult {
        error?: string;
        isValid: boolean;
        type: PhoneNumberType;
    }
    Index

    Properties

    Properties

    error?: string

    Error message if validation failed

    isValid: boolean

    Whether the number is valid

    The detected phone number type