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

- Add conversion of the iterator from Flow to TS #1604

Closed
wants to merge 1 commit into from

Conversation

coado
Copy link
Contributor

@coado coado commented Jan 29, 2025

Summary:
@iterator and @asyncIterator are valid syntaxes for Flow but not for TS which accepts [Symbol.iterator] and [Symbol.asyncIterator]. According to flow lexer these are the only valid syntaxes in this form so checking for other cases prefixed with @@ should not be required.

Changelog:
[flow-api-translator] - Added conversion of the iterator from Flow to TS

Differential Revision: D68776171

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 29, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68776171

@tmikov
Copy link
Contributor

tmikov commented Jan 29, 2025

@coado is there a reason to export these to GitHub before they land?

@robhogan
Copy link
Contributor

robhogan commented Jan 29, 2025

@coado is there a reason to export these to GitHub before they land?

Maybe(?) no good reason in the Hermes repo, but for context we enforce export before land in RN to ensure changes don't break OSS CI - exporting triggers GH CI to be reported as diff signals.

Summary:

`@iterator` and `@asyncIterator` are valid syntaxes for Flow but not for TS which accepts [Symbol.iterator] and [Symbol.asyncIterator]. According to flow lexer these are the only valid syntaxes in this form so checking for other cases prefixed with `@@` should not be required.

Changelog:
[flow-api-translator] - Added conversion of the iterator from Flow to TS

Differential Revision: D68776171
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68776171

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ede7def.

@coado
Copy link
Contributor Author

coado commented Jan 31, 2025

@coado is there a reason to export these to GitHub before they land?

My bad, I thought that there is the same procedure with exporting to GH as with react-native.

facebook-github-bot pushed a commit that referenced this pull request Feb 3, 2025
Summary:
Original Author: [email protected]
Original Git: ede7def
Original Reviewed By: pieterv
Original Revision: D68776171

Pull Request resolved: #1604

`iterator` and `asyncIterator` are valid syntaxes for Flow but not for TS which accepts [Symbol.iterator] and [Symbol.asyncIterator]. According to flow lexer these are the only valid syntaxes in this form so checking for other cases prefixed with `@@` should not be required.

Changelog:
[flow-api-translator] - Added conversion of the iterator and asyncIterator from Flow to TS

Reviewed By: fbmal7

Differential Revision: D69061638

fbshipit-source-id: 5ac46bca3fa1d8b08297bc3e26d9124e06c533f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants