@types/country-telephone-data
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

Installation

npm install --save @types/country-telephone-data

Summary

This package contains type definitions for country-telephone-data (https://github.com/mukeshsoni/country-telephone-data#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/country-telephone-data.

index.d.ts

export interface Country {
    name: string;
    /** The {@link https://w.wiki/4kP |ISO 3166-1 alpha-2} country code (in **lowercase**) */
    iso2: string;
    dialCode: string;
    /** A format string for phone numbers. **This could be an empty string.** */
    format: string;
    hasAreaCodes?: true | undefined;
    priority: number;
}

/** An array with data on every country */
export const allCountries: Country[];

/**
 * The same data as `allCountries`, but as an object, indexed by the
 * {@link https://w.wiki/4kP |ISO 3166-1 alpha-2}
 * name of the country (in **lowercase**)
 */
export const iso2Lookup: Record<string, Country>;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Kyle Hensel.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/country-telephone-data

Weekly Downloads

12,380

Version

0.6.3

License

MIT

Unpacked Size

3.93 kB

Total Files

5

Last publish

Collaborators

  • types