From df2f7932e54f9b0f70027e16c4acd7be20a1b74e Mon Sep 17 00:00:00 2001 From: dherman Date: Sat, 30 Mar 2019 00:02:47 -0400 Subject: [PATCH] Fix two incorrect export definitions (#34118) Both the `getAllCountries` function and the `getAllTimezones` function return an object rather than an array. https://github.com/manuelmhtr/countries-and-timezones/blob/master/src/data.json#L2-L6 https://github.com/manuelmhtr/countries-and-timezones/blob/master/src/data.json#L1905-L1908 --- types/countries-and-timezones/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/countries-and-timezones/index.d.ts b/types/countries-and-timezones/index.d.ts index 1012133d8e..3a84ea3b76 100644 --- a/types/countries-and-timezones/index.d.ts +++ b/types/countries-and-timezones/index.d.ts @@ -16,9 +16,9 @@ export interface Timezone { countries: string[]; } -export function getAllCountries(): Country[]; +export function getAllCountries(): {[key: string]: Country}; -export function getAllTimezones(): Timezone[]; +export function getAllTimezones(): {[key: string]: Timezone}; export function getCountriesForTimezone(timezoneId: string): Country[];