Skip to content

Commit

Permalink
modify according to the changed interface
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Dec 11, 2024
1 parent 2d56227 commit f0801f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/babel-generator/src/generators/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,13 +623,13 @@ export function TSEnumDeclaration(this: Printer, node: t.TSEnumDeclaration) {

export function TSEnumBody(this: Printer, node: t.TSEnumBody) {
printBraced(this, node, () =>
this.printList(node.members, {
indent: true,
statement: true,
printTrailingSeparator:
this.shouldPrintTrailingComma("}") ??
this.printList(
node.members,
this.shouldPrintTrailingComma("}") ??
(process.env.BABEL_8_BREAKING ? false : true),
}),
true,
true,
),
);
}

Expand Down

0 comments on commit f0801f1

Please sign in to comment.