npm.io
2.0.3 • Published 2 years ago

@types/localized-countries

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

Installation

npm install --save @types/localized-countries

Summary

This package contains type definitions for localized-countries (https://github.com/marcbachmann/localized-countries#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/localized-countries.

index.d.ts

declare function localizedCountries(locale: string | object): localizedCountries.LocalizedCountries;

declare namespace localizedCountries {
    interface LocalizedCountries {
        get(code: string): string;
        array(): Array<{
            code: string;
            label: string;
        }>;
        object(): { [code: string]: string };
    }

    const languages: string[];
}

export = localizedCountries;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0938 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.