mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
added secondary_text_matched_substrings?: (#41468)
* added `secondary_text_matched_substrings?` to the `AutocompleteStructuredFormatting` * added tests * added semicolon
This commit is contained in:
committed by
Armando Aguirre
parent
ff2cdfa741
commit
20c88f7ca9
@@ -749,6 +749,17 @@ const autocomplete = new google.maps.places.Autocomplete(document.createElement(
|
||||
const placeResult = autocomplete.getPlace();
|
||||
placeResult.name; // $ExpectType string
|
||||
|
||||
/***** google.maps.places.AutocompleteService *****/
|
||||
new google.maps.places.AutocompleteService()
|
||||
.getPlacePredictions(
|
||||
{input: 'Kyiv, Ukr'},
|
||||
(result) => {
|
||||
result[0]
|
||||
.structured_formatting
|
||||
.secondary_text_matched_substrings; // $ExpectType PredictionSubstring[] | undefined
|
||||
}
|
||||
);
|
||||
|
||||
/***** google.maps.ImageMapType *****/
|
||||
const imageMapType = new google.maps.ImageMapType({
|
||||
alt: 'alt',
|
||||
|
||||
Vendored
+1
@@ -3548,6 +3548,7 @@ declare namespace google.maps {
|
||||
main_text: string;
|
||||
main_text_matched_substrings: PredictionSubstring[];
|
||||
secondary_text: string;
|
||||
secondary_text_matched_substrings?: PredictionSubstring[];
|
||||
}
|
||||
|
||||
interface OpeningHours {
|
||||
|
||||
Reference in New Issue
Block a user