Skip to content

fix: skip template literal transform for TSLiteralType#14582

Merged
nicolo-ribaudo merged 1 commit intobabel:mainfrom
JLHwung:skip-template-literal-under-ts-type
May 25, 2022
Merged

fix: skip template literal transform for TSLiteralType#14582
nicolo-ribaudo merged 1 commit intobabel:mainfrom
JLHwung:skip-template-literal-under-ts-type

Conversation

@JLHwung
Copy link
Copy Markdown
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
Copy Markdown
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.

4 participants