mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
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
This commit is contained in:
+2
-2
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user