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: Fri, 22 Jul 2022 11:32:22 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Kyle Roach, and Adam Binford.