From d65fe3323d4ae296df1ac8204b4a40cba6ea003f Mon Sep 17 00:00:00 2001 From: "John M. Wright" Date: Tue, 15 Aug 2017 16:46:52 -0500 Subject: [PATCH] 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 ( --- types/googlemaps/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index 8fc613a426..fc39130ed1 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -2518,7 +2518,7 @@ declare namespace google.maps { } export interface ComponentRestrictions { - country: string; + country: string|string[]; } export interface PlaceAspectRating {