UNPKG

@types/iso-3166-1-alpha-2

Version:
25 lines (19 loc) 916 B
# Installation > `npm install --save @types/iso-3166-1-alpha-2` # Summary This package contains type definitions for iso-3166-1-alpha-2 (https://github.com/georgzoeller/iso-3166-1-alpha-2). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iso-3166-1-alpha-2. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iso-3166-1-alpha-2/index.d.ts) ````ts export function getCountry(code: string): string | undefined; export function getCode(country: string): string | null; export function getCountries(): string[]; export function getCodes(): string[]; export function getData(): { [code: string]: string | undefined }; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: none # Credits These definitions were written by [Justus Dietrich](https://github.com/Justus-D).