lanka-validations - v2.1.0
    Preparing search index...

    Interface PhoneInfo

    Details of a valid phone number, returned by parsePhone.

    interface PhoneInfo {
        areaName: string | null;
        district: string | null;
        e164: string;
        international: string;
        national: string;
        normalized: string;
        operator: string | null;
        prefix: string;
        raw: string;
        type: PhoneType;
    }
    Index
    areaName: string | null

    Geographic area/town (for landlines)

    district: string | null

    District name (for landlines)

    e164: string

    Standard E.164 international format, e.g. '+94771234567'

    international: string

    Pretty international format, e.g. '+94 77 123 4567'

    national: string

    Pretty national format, e.g. '077 123 4567'

    normalized: string

    Normalized 10-digit national number with leading zero, e.g. '0771234567'

    operator: string | null

    Telco provider name if identifiable

    prefix: string

    3-digit area code (for landlines) or mobile prefix

    raw: string

    The original input string

    type: PhoneType

    Phone type: mobile, fixed, short_code, or toll_free