Installation
npm install --save @types/country-list
Summary
This package contains type definitions for country-list (https://github.com/fannarsh/country-list).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/country-list.
export interface Country {
code: string;
name: string;
}
export function overwrite(countries: Country[]): void;
export function getName(code: string): string | undefined;
export function getCode(name: string): string | undefined;
export function getNames(): string[];
export function getCodes(): string[];
export function getNameList(): { [name: string]: string };
export function getCodeList(): { [code: string]: string };
export function getData(): Country[];
Additional Details
- Last updated: Wed, 18 Oct 2023 00:05:18 GMT
- Dependencies: none
Credits
These definitions were written by Kyle Roach, and Adam Binford.