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

Support parsing Flow's Optional Indexed Access Types #13224

Conversation

gkz
Copy link
Contributor

@gkz gkz commented Apr 27, 2021

This stacked on #13053 (which is not in main, but in branch feat-7.14.0/parser-updates, so I'm targeting that branch).

Optional Indexed Access (e.g. T?.['foo']) is like optional chaining but for indexed access.

This PR also fixes a small issue with IndexedAccessType type definitions, by adding aliases: ["Flow", "FlowType"]

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature? Yes
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

@babel-bot
Copy link
Collaborator

babel-bot commented Apr 27, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/45632/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 27, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 59e4312:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@gkz gkz force-pushed the flow-optional-indexed-access branch from 693092b to bdf2b54 Compare April 27, 2021 02:02
@gkz gkz force-pushed the flow-optional-indexed-access branch from bdf2b54 to 59e4312 Compare April 27, 2021 02:15
@nicolo-ribaudo nicolo-ribaudo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Apr 27, 2021
@nicolo-ribaudo nicolo-ribaudo added this to the v7.14.0 milestone Apr 27, 2021
@nicolo-ribaudo nicolo-ribaudo merged commit d6e7535 into babel:feat-7.14.0/parser-updates Apr 27, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: flow outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants