Skip to content

fix(types): visit decorators of TSParameterProperty - #18391

Merged
nicolo-ribaudo merged 2 commits into
7.xfrom
automation/backport-18380
Oct 22, 2026
Merged

nicolo-ribaudo merged 2 commits into
7.xfrom
automation/backport-18380

Conversation

@babel-bot

Copy link
Copy Markdown
Collaborator

Backport of #18380 to 7.x

Cherry-picked commits:

  • c897d1e → fix(types): visit decorators of TSParameterProperty

Conflicts: Resolved.

  • packages/babel-types/src/definitions/typescript.ts: 7.x keeps aliases: BABEL_8_BREAKING ? [] : ["LVal"], while the original change set aliases: [] and builder. I kept the 7.x aliases and only applied the visitor: ["decorators", "parameter"] change.

Fix commit: "Fix TSParameterProperty builder signature after backporting #18380" adds builder: ["parameter"]. Without it, the generated tsParameterProperty builder gained a leading decorators argument, a breaking change on 7.x. Generated files are unchanged versus 7.x.

Checks:

  • Rebuild: passed.
  • Full test suite: 1 failing suite, packages/babel-code-frame/test/color-detection.js (6 tests), which is unrelated to this change. All other suites passed. Relevant suites (babel-types, module-transforms, transform-typescript) pass after the fix.
  • Lint: failed. check-compat-data ran out of memory (Node heap OOM) in this environment. lint-ci also failed, and I could not determine why from the output. The working tree is clean afterwards, so the generated files are in sync.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 🔙 Backport to 7.x for #18380 · copilot · auto · 22.9 AIC · ⌖ 0.601 AIC · ⊞ 9.1K · ◷

@babel-bot

Copy link
Copy Markdown
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.x: backport pkg: types 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.

3 participants