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

feat: migrate from Flow to TypeScript #727

Merged
merged 3 commits into from
Feb 9, 2022
Merged

Conversation

tido64
Copy link
Member

@tido64 tido64 commented Dec 9, 2021

Summary

  • Migrated all Flow files to TypeScript
  • Disabled 'dot-notation' ESLint rule conflicting with TypeScript
  • Use more default Prettier settings
  • Moved ESLint and Prettier config into package.json

Test Plan

CI should pass.

src/types.ts Show resolved Hide resolved
- Migrated all Flow files to TypeScript
- Disabled 'dot-notation' ESLint rule conflicting with TypeScript
- Use more default Prettier settings
- Moved ESLint and Prettier config into package.json
@tido64 tido64 force-pushed the tido/flow-to-typescript branch from baae5b3 to a7895cd Compare February 3, 2022 19:58
@tido64 tido64 marked this pull request as ready for review February 4, 2022 10:04
@kopax-polyconseil
Copy link

Thanks for contributing ! This PR is awesome, I hope it will be merged soon !

@tido64 tido64 requested a review from krizzu February 7, 2022 20:28
Copy link
Member

@krizzu krizzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is gold, about time to drop Flow 👏
I left some unimportant cleanup comments, feel free to ignore them.
And please add yourself to contributors, @tido64 🙏

package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
src/AsyncStorage.native.ts Outdated Show resolved Hide resolved
Comment on lines +361 to +364
if (!RCTAsyncStorage.multiMerge) {
delete AsyncStorage.mergeItem;
delete AsyncStorage.multiMerge;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guess we could get rid of that, all platforms include this methods

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave it in for now. I want this change to be more or less a pure migration. We can remove it in a separate PR.

src/AsyncStorage.native.ts Outdated Show resolved Hide resolved
src/AsyncStorage.native.ts Outdated Show resolved Hide resolved
src/AsyncStorage.native.ts Outdated Show resolved Hide resolved
src/AsyncStorage.native.ts Outdated Show resolved Hide resolved
src/types.ts Outdated Show resolved Hide resolved
@tido64 tido64 merged commit e3d36f3 into master Feb 9, 2022
@tido64 tido64 deleted the tido/flow-to-typescript branch February 9, 2022 11:14
@krizzu
Copy link
Member

krizzu commented Feb 9, 2022

🎉 This PR is included in version 1.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Bardiamist
Copy link

Why multiGet retuns void

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

Successfully merging this pull request may close these issues.

5 participants