allowing ComponentRestrictions as string|string[]

Google API allows the Autocomplete ComponentRestrictions to be either a single string (`{'country': 'us'}`) or a string array (`{'country': ['us','gb','fr']}`)

Reference: 
Single value: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-hotelsearch
Multiple values: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-multiple-countries
(
This commit is contained in:
John M. Wright
2017-08-15 16:46:52 -05:00
committed by GitHub
parent 5002dcc843
commit d65fe3323d
+1 -1
View File
@@ -2518,7 +2518,7 @@ declare namespace google.maps {
}
export interface ComponentRestrictions {
country: string;
country: string|string[];
}
export interface PlaceAspectRating {