Skip to content

[Babel 8] Create TSAbstract{Method,Property}Definition#17014

Merged
JLHwung merged 4 commits intobabel:mainfrom
JLHwung:create-ts-abstract-for-class-members
Dec 11, 2024
Merged

[Babel 8] Create TSAbstract{Method,Property}Definition#17014
JLHwung merged 4 commits intobabel:mainfrom
JLHwung:create-ts-abstract-for-class-members

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Dec 9, 2024

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

In this PR we generate TSAbstractMethodDefinition and TSAbstractPropertyDefinition when both estree and typescript parser plugins are enabled. This PR does not affect the typescript transform / generation because none of them support the estree parser plugin.

@JLHwung JLHwung added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release PR: Needs Docs labels Dec 9, 2024
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Dec 9, 2024

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

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

The changes themselves look good, but is there any reason to not do this inside estree.ts?

@JLHwung
Copy link
Copy Markdown
Contributor Author

JLHwung commented Dec 10, 2024

The changes themselves look good, but is there any reason to not do this inside estree.ts?

I don't have strong preference, it should be handled by either the estree or the typescript plugin. In retrospect it seems better to be in the estree plugin, I will move the logic there.

@JLHwung JLHwung force-pushed the create-ts-abstract-for-class-members branch from 8ae8c11 to 10a4b74 Compare December 10, 2024 18:45
@JLHwung JLHwung merged commit 40d37cb into babel:main Dec 11, 2024
@JLHwung JLHwung deleted the create-ts-abstract-for-class-members branch December 11, 2024 23:48
@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 Mar 13, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2025
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: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants