diff --git a/samples/place-autocomplete-element/index.ts b/samples/place-autocomplete-element/index.ts index d400dec230..24b5f308fb 100644 --- a/samples/place-autocomplete-element/index.ts +++ b/samples/place-autocomplete-element/index.ts @@ -9,9 +9,7 @@ async function initMap(): Promise { // [START maps_place_autocomplete_element_add] // Request needed libraries. //@ts-ignore - const [{ Map }] = await Promise.all([ - google.maps.importLibrary("places"), - ]); + await google.maps.importLibrary("places") as google.maps.PlacesLibrary; // Create the input HTML element, and append it. //@ts-ignore const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement();