mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
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:
Vendored
+1
-1
@@ -2518,7 +2518,7 @@ declare namespace google.maps {
|
||||
}
|
||||
|
||||
export interface ComponentRestrictions {
|
||||
country: string;
|
||||
country: string|string[];
|
||||
}
|
||||
|
||||
export interface PlaceAspectRating {
|
||||
|
||||
Reference in New Issue
Block a user