Skip to content

Commit b7a40cd

Browse files
authored
fix: Fixes declaration to get rid of ts-ignore. (#909)
1 parent e2de995 commit b7a40cd

File tree

1 file changed

+1
-3
lines changed
  • samples/place-autocomplete-element

1 file changed

+1
-3
lines changed

samples/place-autocomplete-element/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ async function initMap(): Promise<void> {
1010
// Request needed libraries.
1111
await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
1212
// Create the input HTML element, and append it.
13-
//@ts-ignore
14-
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement();
15-
//@ts-ignore
13+
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement({});
1614
document.body.appendChild(placeAutocomplete);
1715
// [END maps_place_autocomplete_element_add]
1816

0 commit comments

Comments
 (0)