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

Move from Flow to TypeScript #8

Closed
8 of 9 tasks
100terres opened this issue Dec 18, 2020 · 16 comments
Closed
8 of 9 tasks

Move from Flow to TypeScript #8

100terres opened this issue Dec 18, 2020 · 16 comments
Assignees
Labels
Projects

Comments

@100terres
Copy link
Collaborator

100terres commented Dec 18, 2020

Description

Related to: atlassian/react-beautiful-dnd#982

@ghost
Copy link

ghost commented Jan 5, 2021

Hey @100terres, great to see you effort on this fork! 😻 How can we support you to get this done?

@100terres
Copy link
Collaborator Author

Hi @finnatinform, I’m currently working on migrating the test suit to TypeScript (#15) and I’ll follow with the migration of the source code (#10). I should be able to have a major part of the work done in a couple of days. I think what would be appreciated is to have other people review the code. I’ll do my best to make the review process as easy as it can be, but since it will affect almost all files it might be cumbersome task to do 😅. I’ll also need help to keep Flow support (type declaration), since I’m not a Flow developer/user. After that we’ll have a clean slate to really build on top of and start tackling issues opened on react-beautiful-dnd. If you have any suggestions feel free to comment and/or open issues! 🙂

@JamesGelok
Copy link

We could use flowgen to help make flow types from our typescript types

https://github.com/joarwilk/flowgen

(I'm not a flow developer either 😅)

@100terres
Copy link
Collaborator Author

@JamesGelok thank you for the suggestion! 🙂 🎉

@cmacdonnacha
Copy link

Hey @100terres , just wondering if there's anything we can help with here?

@100terres
Copy link
Collaborator Author

Hi @cmacdonnacha thanks for pinging me! I was a bit busy at work in the last couple weeks, but I recently managed to migrate all the files in the src folder to TypeScript. I'll open a couple of PRs during the weekend and I'll add you as a reviewer 🙂

After that I've already started the migrations of the test folder to TypeScript, but there is still work to do to properly finished migration to TypeScript. If you want, once the migration of the src folder is merged, I could leave it to you to finished the migration of the test folder? 🙂

@100terres
Copy link
Collaborator Author

Hi there! Just to give you all feedback! Sorry, to have left this work unfinished! I'll push to finish this and really take the time to maintain this repo 🙂

Sorry again and I won't let you down this time 🙂

@100terres 100terres pinned this issue Feb 1, 2022
@100terres
Copy link
Collaborator Author

100terres commented Feb 1, 2022

Here's an update of where we currently are:

  • MMigrate src/ from Flow to TypeScript ✔️
  • Fix all TypeScript errors from the src/ ✔️
  • MMigrate test/ from Flow to TypeScript ✔️
  • Fix all TypeScript errors from the test/ ⛔ We still have more than 549 errors to fix, but the migration is going smootly 🙂

I'll try to give you an other update in the upcoming days!

@100terres
Copy link
Collaborator Author

100terres commented Feb 2, 2022

We are now at 487 errors 🙂 📉

@100terres
Copy link
Collaborator Author

We are now at 395 TypeScript/typings errors. Just to mention the tests themselves are passing 🙂

@100terres
Copy link
Collaborator Author

We are now at 138 TypeScript errors! Almost done! 🙂

@100terres
Copy link
Collaborator Author

Will be done soon! Only 59 errors left 🙂

@100terres
Copy link
Collaborator Author

No more TypeScript errors ✔️

Next step I'll do some clean-up 🧹

@100terres
Copy link
Collaborator Author

I'll be able to do release v14.0.0-alpha.5 soon 🙂

@100terres
Copy link
Collaborator Author

The only thing missing here is the support of flow declaration:

But for now it will be a nice to have. If anyone would like to tackle this issue and open a PR I'll gladly review it and merge it 🙂

This conclude the migration from flow to TypeScript!

@100terres 100terres moved this from In progress to Done in v14.0.0 Feb 11, 2022
@100terres
Copy link
Collaborator Author

v14.0.0 released 🙂

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

No branches or pull requests

3 participants