abadi199/intl-phone-input/2.0.2

NOTE: the latest version is 2.0.3

IntlPhoneInput.Type

Contains all the data types used in IntlPhoneInput

Types

type alias PhoneNumber =
{ isoCode : String
, phoneNumber : String
}

Record type to hold the phone number and country ISO code

type alias CountryData =
{ name : String
, dialCode : String
}

Record type to hold country name and the dial code number. This record is used by Config to hold the list of countries and their dial code.

Helpers

emptyPhoneNumber : PhoneNumber

A constant for an empty phone number.