Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 'strictBounds' does not exist in type #356

Open
dangnelson opened this issue Jan 22, 2021 · 1 comment
Open

Bug: 'strictBounds' does not exist in type #356

dangnelson opened this issue Jan 22, 2021 · 1 comment

Comments

@dangnelson
Copy link

Using version 7.3.0, when trying to set 'strictBounds' while using Typescript results in the following error:

"'strictBounds' does not exist in type "

Example usage:

      <PlacesAutocomplete
        value={address}
        onChange={handleChange}
        onSelect={handleSelect}
        searchOptions={{ bounds: getStateBounds("ca"), strictBounds: "true" }}
      >

According to the Google Places API:
"strictBounds is a boolean specifying whether the API must return only those places that are strictly within the region defined by the given bounds. The API does not return results outside this region even if they match the user input."

@dangnelson
Copy link
Author

Actually it looks like several of the search options have changed based on the documentation I'm reading now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant