Millwork
    Preparing search index...

    Interface PhoneOptions

    Options of the phone codec.

    interface PhoneOptions {
        defaultCountry?: CountryCode;
        metadata?: MetadataJson;
    }
    Index
    defaultCountry?: CountryCode

    The country of a national number, such as 'CA' for "(416) 555-1234".

    metadata?: MetadataJson

    The libphonenumber-js metadata. The default is the min flavour. Give the max or mobile flavour (libphonenumber-js/max/metadata) to get number types such as mobile.