-
Notifications
You must be signed in to change notification settings - Fork 651
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D68776171 |
@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
d0de615
to
68d2102
Compare
This pull request was exported from Phabricator. Differential Revision: D68776171 |
This pull request has been merged in ede7def. |
My bad, I thought that there is the same procedure with exporting to GH as with react-native. |
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
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