npm.io
1.0.2 • Published 2 years ago

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

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Justus Dietrich.