-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Install flow type definitions from Jest by default or suggest it #453
Comments
The Flow team has plans for a In the meantime it might make sense for create-react-app to ship with a [lib] directory with all of the dependencies that create-react-app adds by default. Then can be added to a cc @jeffmo |
There's no need for config here (I've never felt so proud!) -- So as long as that directory exists, any |
That's not what I was talking about. I was saying there could be a Flow doesn't look for nested |
@thejameskyle Not sure if it is a good idea to hide the
That is really nice. In that way you could add some hook to |
Crash and burn! :)
We definitely recommend adding the items that are installed by the command to version control since libdefs can be updated/improved over time. It wouldn't be very good if one person who The main thing For |
It is not clear to me what we should do. |
Closing, but feel free to send a doc PR if you have suggestions about what should be there! |
I think the suggested flow config should also include the following line:
So that flow will recognize the definitions if you run:
It would be helpful to add some info in the README about this process of adding type definitions to the project. Maybe the type definition of Jest could actually be added by default?
The text was updated successfully, but these errors were encountered: