-
Notifications
You must be signed in to change notification settings - Fork 326
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
expose typescript type definitions #402
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This was on my Todo-List, too! ❤️
lat: number; | ||
lng: number; | ||
}; | ||
readonly gmaps?: google.maps.GeocoderResult; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to include this, too. It’s available and shouldn’t be removed.
@@ -25,18 +24,18 @@ export default interface IProps { | |||
readonly queryDelay?: number; | |||
readonly googleMaps?: any; | |||
readonly highlightMatch?: boolean; | |||
readonly onSuggestSelect?: (suggest?: ILocation) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m unsure about this change — the suggest provided on select may only consist of the location and the optional Google Maps result.
There were some small changes to the |
Closing this due to inactivity. Opened an issue for this: #467 |
Description
interface-name
eslint rule to"never-prefix"
so exposed TS interfaces don't have to begin with a prefix ofI
.gmaps
property to theSuggest
interface (it was being left out before).Props
toGeosuggestProps
for clarity.Checklist