mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[@types/country-data] Add missing keys to countries export (#36601)
This commit is contained in:
parent
e64d87db66
commit
ba8c999252
@ -5,10 +5,11 @@ lib.callingCountries.all; // $ExpectType ReadonlyArray<Country>
|
||||
lib.continents.africa; // $ExpectType Continent
|
||||
lib.continents.africa.countries; // $ExpectType ReadonlyArray<Country>
|
||||
lib.countries.all; // $ExpectType ReadonlyArray<Country>
|
||||
lib.countries.BY; // $ExpectType Country
|
||||
lib.currencies.all; // $ExpectType ReadonlyArray<Currency>
|
||||
lib.languages.all; // $ExpectType ReadonlyArray<Language>
|
||||
lib.regions.antarctica; // $ExpectType Region
|
||||
lib.regions.antarctica.countries; // $ExpectType ReadonlyArray<string>
|
||||
lib.lookup.countries(""); // $ExpectType ReadonlyArray<Country>
|
||||
lib.lookup.currencies(""); // $ExpectType ReadonlyArray<Currency>
|
||||
lib.lookup.languages(""); // $ExpectType ReadonlyArray<Language>
|
||||
lib.lookup.countries(''); // $ExpectType ReadonlyArray<Country>
|
||||
lib.lookup.currencies(''); // $ExpectType ReadonlyArray<Currency>
|
||||
lib.lookup.languages(''); // $ExpectType ReadonlyArray<Language>
|
||||
|
||||
3
types/country-data/index.d.ts
vendored
3
types/country-data/index.d.ts
vendored
@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/OpenBookPrices/country-data
|
||||
// Definitions by: Logan Dam <https://github.com/biltongza>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
export interface Country {
|
||||
readonly alpha2: string;
|
||||
@ -41,6 +42,8 @@ export interface Region {
|
||||
}
|
||||
|
||||
export const countries: {
|
||||
readonly [key: string]: Country;
|
||||
} & {
|
||||
readonly all: ReadonlyArray<Country>;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user