@celo/phone-utils"countries"Countries

Class: Countries

Hierarchy

  • Countries

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Countries(language?: undefined | string): Countries

Defined in countries.ts:40

Parameters:

Name Type
language? undefined | string

Returns: Countries

Properties

countryMap

countryMap: Map‹string, LocalizedCountry

Defined in countries.ts:39


language

language: string

Defined in countries.ts:38


localizedCountries

localizedCountries: LocalizedCountry[]

Defined in countries.ts:40

Methods

getCountry

getCountry(countryName?: string | null): LocalizedCountry | undefined

Defined in countries.ts:50

Parameters:

Name Type
countryName? string | null

Returns: LocalizedCountry | undefined


getCountryByCodeAlpha2

getCountryByCodeAlpha2(countryCode: string): LocalizedCountry | undefined

Defined in countries.ts:60

Parameters:

Name Type
countryCode string

Returns: LocalizedCountry | undefined


getFilteredCountries

getFilteredCountries(query: string): LocalizedCountry[]

Defined in countries.ts:64

Parameters:

Name Type
query string

Returns: LocalizedCountry[]