mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Complete and tested. The module has two flavors, one for browser and one For node. The typings cover both of them.
19 lines
571 B
TypeScript
19 lines
571 B
TypeScript
// Type definitions for localized-countries 1.0
|
|
// Project: https://github.com/marcbachmann/localized-countries#readme
|
|
// Definitions by: coderslagoon <https://github.com/coderslagoon>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
interface LocalizedCountries {
|
|
get(code: string): string;
|
|
array(): Array<{
|
|
code: string;
|
|
label: string;
|
|
}>;
|
|
object(): { [code: string]: string };
|
|
}
|
|
|
|
declare function localizedCountries(locale: string|object): LocalizedCountries;
|
|
|
|
export = localizedCountries;
|