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

fix: skip template literal transform for TSLiteralType #14582

Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented May 24, 2022

Q                       A
Fixed Issues? template literal plugin incorrectly transforms TS template literal type
Patch: Bug Fix? Y
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

The issue was caught by the type checker. In this PR we skip the transform when it is a TS template literal type. Other typing improvements are for the noImplicitAny option.

@JLHwung JLHwung added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label May 24, 2022
@babel-bot
Copy link
Collaborator

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

@nicolo-ribaudo nicolo-ribaudo merged commit deb832b into babel:main May 25, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the skip-template-literal-under-ts-type branch May 25, 2022 07:14
@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 Aug 25, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
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 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