mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Changed parameter query to phoneNumber in googlemaps service. Closes #29308
This commit is contained in:
@@ -438,3 +438,14 @@ service.findPlaceFromQuery({
|
||||
|
||||
results[0].name; // $ExpectType string
|
||||
});
|
||||
|
||||
service.findPlaceFromPhoneNumber({
|
||||
phoneNumber: '123456',
|
||||
fields: ['name']
|
||||
}, (results, status) => {
|
||||
if (status === google.maps.places.PlacesServiceStatus.ERROR) {
|
||||
return;
|
||||
}
|
||||
|
||||
results[0].name; // $ExpectType string
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user