-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Flow types for React Router #3193
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
Comments
I feel like we'd be better off having our Flow definitions in this repo, if applicable, and actually using Flow. I recall that Redux used Flow at one point, but I see that it got stripped out. @reactjs/redux: what were the issues there? |
Would this cause any issues with Typescript users? I know they have a similar central repo of type mappings for various libraries, but I'm not a user, so I don't know how these things interact. |
I don't think so. Flow bindings go under |
Given the similarities between Flow and TypeScript, does anyone know if there's a way to generate support for both via one set of annotations? |
You should bring that question up on the Flow types repo. It looks like the concerns there are about not wanting to offer a public API with respect to Flow types. Given that the whole idea of adding type annotations would be to offer a public API, I don't think those concerns are relevant here. cc @gaearon |
+1 for submitting flow definitions to the flow-typed repo. |
Meanwhile you can use |
Looks like there's a PR for this at flow-typed/flow-typed#284 |
I've been using and loving Flow in my current work project. I'm trying to incorporate it into all the things.
A new 'flow-typed' repo opened up (https://github.com/flowtype/flow-typed) similar to Typescript's DefinitelyTyped repo. Was wondering if anyone wanted to make or already had a definition file for react-router to contribute before I'm forced to build my own.
As the main routing library in react, it would be nice to have this.
The text was updated successfully, but these errors were encountered: