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

    Interface ParsedPhoneNumber

    Represents a successfully parsed phone number.

    interface ParsedPhoneNumber {
        countryCode: number;
        isValid: boolean;
        nationalNumber: string;
        rawInput: string;
        regionCode: string;
        type: PhoneNumberType;
    }
    Index

    Properties

    countryCode: number

    The country calling code (e.g., 49 for Germany)

    isValid: boolean

    Whether the number is valid for the detected type

    nationalNumber: string

    The national number without country code

    rawInput: string

    The original input string

    regionCode: string

    ISO 3166-1 alpha-2 region code (e.g., "DE")

    The type of phone number