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/v1.
export default function Countries(): {
getName(code: string): string | undefined;
getCode(name: string): string | undefined;
getNames(): string[];
getCodes(): string[];
getNameList(): { [name: string]: string };
getCodeList(): { [code: string]: string };
getData(): Array<{ code: string; name: string }>;
};
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Kyle Roach.