-
Notifications
You must be signed in to change notification settings - Fork 607
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
[Discussion] Better Flow setup #21
Comments
The |
Oh, that's so cool! Thanks @jamesisaac. I will check it out on Friday if it actually works :) |
You're welcome! Cool library (just saw it on HN), looking forward to giving it a try. Great to see the focus on Flow / type safety. |
My understanding is that The way I use flow is by ignoring type errors that come from dependencies. But this only works in versions of flow that use the old error reporting format. I would love to hear from React developers who are able to use Flow successfully. And I would love to find out if I'm missing something. |
I tried using What I normally do:
Pros: Cons:
I guess this is similar to using Typescript where you will need to define missing index.d.ts in the |
Hmm yeah weird, I think when a project is written with Flow types in the source code itself, there could be benefits to exporting those directly in the repo. They are just guaranteed to be up to date with the code, whereas flow-typed definitions are more of an approximation, not very granular down to individual releases.
I normally go to the branch for the version I'm using on the RN repo, then look at their .flowconfig file, and use the same for my project. |
@jamesisaac that's a great tip thks 👍🏻 |
Exactly! This seems so much better than trying to separately maintain the types in an external place... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
In #19 I fixed support for using Flow in apps importing Watermelon.
But there's a couple of problems:
Can we generate flow-typed automatically from source?.
Or, alternatively: Can apps configure Flow to only import types, but don't actually output errors for Flow issues inside Watermelon?
The text was updated successfully, but these errors were encountered: