If you know how to fix the issue, make a pull request instead.
@types/xxxx package and had problems.Definitions by: in index.d.ts) so they can respond.Trying to make an Autocomplete request explicitly without Places Details like that:
this.autocomplete = new google.maps.places.Autocomplete(autocompleteInput, {
types: ['address']
});
this.autocomplete.setFields(['formatted_address']);
And recieve an error:
Typescript Error
Property 'setFields' does not exist on type 'Autocomplete'.
Please, add the new functionality according to sku mapping changes. Link
Ping - any word on this? Given that it's directly related to how much we're charged for using the API, this seems like something that should be important enough to have some time allotted to it.
Update:
Looks like you can also set it through the options object
https://developers.google.com/maps/documentation/javascript/reference/places-widget#AutocompleteOptions.fields
is not a mistake, just tell to the compiler that the autocomplete is type of any
const autocomplete:any = new google.maps.places.Autocomplete(
autocompleteInput, {
types: ['address']
});
Most helpful comment
Ping - any word on this? Given that it's directly related to how much we're charged for using the API, this seems like something that should be important enough to have some time allotted to it.
Update:
Looks like you can also set it through the options object
https://developers.google.com/maps/documentation/javascript/reference/places-widget#AutocompleteOptions.fields