-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
Transition away from Flow to TypeScript #1110
Comments
Hey! This was one of the issues I wanted to open these days, a complete go from my side 🚀 |
Is there an easy way we can make the migration incrementally? 🤔 |
We could set a rule that if you touch a file, you convert it to TS which will then gradually convert the codebase. Which is how I've done it in the past for large codebases. But might as well just do everything in one go since the codebase is not that big. I had a go at it yesterday and shouldn't be too much work since it's purely types that change, the underlying javascript doesn't really change much. |
Sure but we would have to support both TS and JS Flow under the same build system, It's possible given that we can allow using JS within the Not sure if we will have conflicts by having "Flow types" on JS files when bundling with tsup If that's the case then I would go for doing one PR with the setup for TS introducing the new bundling tool and then organise each part of the codebase so we can work together on a command/feature basis |
@segersniels Great work!! I'll add the list of files that we need to migrate to your original message in a checklist mode! |
This is a cool project! Is this commit still up-to-date? I'd love to contribute 👍 |
Hey @Lauro235 yes, it's up to date feel free to migrate and send PRs for the non TS files we have in the project |
@carloscuesta: I would love to contribute to this project for migration. Kindly do let me know if I can pick this up for migration. |
Hey @shravan20 feel free to go ahead ❤️ |
Hi @segersniels! I gave this a go, but I don't think it's possible to migrate gradually, file by file. Question. Do you know if there is an easy way to do it piece by piece? |
@mikelinhas: I am moving it in minor versions, specific domain of logic by logic. Adding the first PR: #1277 |
@mikelinhas I made some improvements in #1279 to the TS setup which should allow to properly change file by file without interfering with Flow too much. |
Discussion
Mostly just to open a discussion.
I personally feel like TypeScript has been winning the race against Flow (and has won) for the last couple of years. So might be worth the effort to convert everything to TS and then compile/bundle the code into JS with something like
tsup
. Should improve development speed and give more control over types.Validations
To do
The text was updated successfully, but these errors were encountered: