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

Flow types #681

Closed
normanrz opened this issue Dec 23, 2018 · 1 comment
Closed

Flow types #681

normanrz opened this issue Dec 23, 2018 · 1 comment
Labels

Comments

@normanrz
Copy link

It's great that you have added flow types to the codebase. What would be the best way to consume these types from my react application?

NachoCasta added a commit to NachoCasta/react-map-gl that referenced this issue May 21, 2020
Hi!
I just started using react-map-gl for a project I'm doing, where I'm also using flow. In order to do so, I had to create a stub for react-map-gl declaring all types to be any.
However, I just realized that the library is already flow typed, which is awesome, but flow still complains that I'm exporting from an untyped module.
Looking into visgl#681, it seems I'm not the only one who noticed this. I'm not sure if this would solve the issue or what is the proper way to expose these types to the consumers but if it is not I would be happy to help if someone points me in the right direction.
@Pessimistress
Copy link
Collaborator

Flow types will be available in v5.3/v6.1.

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

No branches or pull requests

2 participants