DefinitelyTyped/types/localized-countries/index.d.ts
coderslagoon 8f7dffc7a5 typings for localized-countries (#18809)
Complete and tested. The module has two flavors, one for browser and one
For node. The typings cover both of them.
2017-08-14 11:09:49 -07:00

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;