Skip to content

Commit 10d2349

Browse files
Update options attribute to use correct AutocompletionRequest type in usePlacesAutocompleteServiceConfig (#127)
* Update `options` attribute to use correct AutocompletionRequest type in usePlacesAutocompleteServiceConfig - This allows for extra options such as 'componentRestrictions' to be passed in * Bump package-lock version
1 parent da6b4a5 commit 10d2349

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/usePlacesAutocompleteService.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ interface usePlacesAutocompleteServiceConfig {
22
apiKey?: string;
33
googleMapsScriptBaseUrl?: string;
44
debounce?: number;
5-
options?: google.maps.places.QueryAutocompletionRequest;
5+
options?: google.maps.places.AutocompletionRequest;
66
sessionToken?: boolean;
77
language?: string;
88
}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/usePlacesAutocompleteService.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ interface usePlacesAutocompleteServiceConfig {
22
apiKey?: string;
33
googleMapsScriptBaseUrl?: string;
44
debounce?: number;
5-
options?: google.maps.places.QueryAutocompletionRequest;
5+
options?: google.maps.places.AutocompletionRequest;
66
sessionToken?: boolean;
77
language?: string;
88
}

0 commit comments

Comments
 (0)