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

Follow-up on initial TS4 catch param support #11767

Merged
merged 3 commits into from Jun 30, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jun 30, 2020

Q                       A
Fixed Issues? The generator does not support catch param types
Patch: Bug Fix? Yes
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR fixes a bug in previous AST design #11755 where type: string is replaced by a TypeAnnotation AST Node. By doing so the transformer support is out of box.

This PR also adds generator support for catch param types.

@JLHwung JLHwung added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: generator pkg: parser labels Jun 30, 2020
@JLHwung JLHwung added this to the 7.11.0 milestone Jun 30, 2020
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Jun 30, 2020
4 tasks
@babel-bot
Copy link
Collaborator

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

@codesandbox-ci
Copy link

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 011458a:

Sandbox Source
winter-dew-znqle Configuration
nifty-jones-ipqdr Configuration

Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Whooops 🙃
Thanks for catching this!

@existentialism
Copy link
Member

🤦‍♂️

@JLHwung JLHwung merged commit cefa136 into babel:feat-7.11.0/ts-4.0 Jun 30, 2020
@JLHwung JLHwung deleted the ts4-catch-param branch June 30, 2020 20:42
nicolo-ribaudo pushed a commit that referenced this pull request Jul 15, 2020
* refactor: align with AST shape convention

* feat: print catch param type annotations

* test: add test case on transform
JLHwung added a commit that referenced this pull request Jul 29, 2020
* refactor: align with AST shape convention

* feat: print catch param type annotations

* test: add test case on transform
@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 Sep 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: generator pkg: parser PR: Bug Fix 🐛 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

4 participants