Minor clean up after Babel v8 upgrade (#18117)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-10-21 23:25:11 +08:00
1 parent fc70e992a7
commit 0162263830
3 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ function printClass(path, options, print) {
const printed = [
printSuperClass(path, options, print),
print(
// TODO: Use `superTypeArguments` only when babel align with TS.
// TODO: Remove `superTypeParameters` when https://github.com/facebook/hermes/issues/1808#issuecomment-3413004377 get fixed
node.superTypeArguments ? "superTypeArguments" : "superTypeParameters",
),
];
+1
View File
@@ -125,6 +125,7 @@ function printDanglingCommentsForInline(path, options) {
return [printed, hardline];
}
// `TSTypeParameter` and `TypeParameter`
function printTypeParameter(path, options, print) {
const { node } = path;
-1
View File
@@ -268,7 +268,6 @@ function printTypescript(path, options, print) {
case "TSImportEqualsDeclaration":
return [
node.isExport ? "export " : "",
"import ",
printImportKind(node, /* spaceBeforeKind */ false),
print("id"),