Minor clean up after Babel v8 upgrade (#18117)
This commit is contained in:
1 parent
fc70e992a7
commit
0162263830
3 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
),
|
||||
];
|
||||
|
||||
@@ -125,6 +125,7 @@ function printDanglingCommentsForInline(path, options) {
|
||||
return [printed, hardline];
|
||||
}
|
||||
|
||||
// `TSTypeParameter` and `TypeParameter`
|
||||
function printTypeParameter(path, options, print) {
|
||||
const { node } = path;
|
||||
|
||||
|
||||
@@ -268,7 +268,6 @@ function printTypescript(path, options, print) {
|
||||
|
||||
case "TSImportEqualsDeclaration":
|
||||
return [
|
||||
node.isExport ? "export " : "",
|
||||
"import ",
|
||||
printImportKind(node, /* spaceBeforeKind */ false),
|
||||
print("id"),
|
||||
|
||||
Reference in new issue
Block a user