diff --git a/types/country-data/country-data-tests.ts b/types/country-data/country-data-tests.ts index c51b60a5d7..c69e4744ac 100644 --- a/types/country-data/country-data-tests.ts +++ b/types/country-data/country-data-tests.ts @@ -7,6 +7,7 @@ lib.continents.africa.countries; // $ExpectType ReadonlyArray lib.countries.all; // $ExpectType ReadonlyArray lib.countries.BY; // $ExpectType Country lib.currencies.all; // $ExpectType ReadonlyArray +lib.currencies.USD; // $ExpectType Currency lib.languages.all; // $ExpectType ReadonlyArray lib.regions.antarctica; // $ExpectType Region lib.regions.antarctica.countries; // $ExpectType ReadonlyArray diff --git a/types/country-data/index.d.ts b/types/country-data/index.d.ts index b770775a2f..1250b58001 100644 --- a/types/country-data/index.d.ts +++ b/types/country-data/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for country-data 0.0 // Project: https://github.com/OpenBookPrices/country-data // Definitions by: Logan Dam +// Mike MacCana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -20,6 +21,7 @@ export interface Currency { readonly code: string; readonly decimals: number; readonly name: string; + readonly symbol: string; readonly number: number; } @@ -66,6 +68,8 @@ export const callingCountries: { }; export const currencies: { + readonly [key: string]: Currency; +} & { readonly all: ReadonlyArray; };