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

expose typescript type definitions #402

Closed
wants to merge 2 commits into from

Conversation

willcaul
Copy link
Contributor

Description

  • Exposes the typescript type definitions.
  • Sets the interface-name eslint rule to "never-prefix" so exposed TS interfaces don't have to begin with a prefix of I.
  • Adds the gmaps property to the Suggest interface (it was being left out before).
  • Renames Props to GeosuggestProps for clarity.

Checklist

  • All tests passing
  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary
  • Commits and PR follow conventions

Copy link
Contributor

@ro-ka ro-ka left a 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;
Copy link
Contributor

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;
Copy link
Contributor

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.

@ro-ka
Copy link
Contributor

ro-ka commented Oct 19, 2018

There were some small changes to the gmaps type in the master branch through another PR (#399), but as this needs to be changed either way I guess it’s adjusted easily.

@ro-ka
Copy link
Contributor

ro-ka commented May 29, 2020

Closing this due to inactivity. Opened an issue for this: #467

@ro-ka ro-ka closed this May 29, 2020
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

Successfully merging this pull request may close these issues.

2 participants