@@ -8433,6 +8433,8 @@ class NamedImportExportSpecifierStructurePrinter extends NodePrinter {
8433
8433
else if (structure instanceof Function)
8434
8434
structure(specifierWriter);
8435
8435
else {
8436
+ if (structure.isTypeOnly)
8437
+ writer.write("type ");
8436
8438
specifierWriter.write(structure.name);
8437
8439
if (!StringUtils.isNullOrWhitespace(structure.alias)) {
8438
8440
if (!specifierWriter.isLastNewLine())
@@ -12167,6 +12169,8 @@ class ExportSpecifier extends ExportSpecifierBase {
12167
12169
}
12168
12170
set(structure) {
12169
12171
callBaseSet(ExportSpecifierBase.prototype, this, structure);
12172
+ if (structure.isTypeOnly != null)
12173
+ this.setIsTypeOnly(structure.isTypeOnly);
12170
12174
if (structure.name != null)
12171
12175
this.setName(structure.name);
12172
12176
if (structure.alias != null)
@@ -12181,6 +12185,7 @@ class ExportSpecifier extends ExportSpecifierBase {
12181
12185
kind: StructureKind.ExportSpecifier,
12182
12186
alias: alias ? alias.getText() : undefined,
12183
12187
name: this.getNameNode().getText(),
12188
+ isTypeOnly: this.isTypeOnly(),
12184
12189
});
12185
12190
}
12186
12191
}
@@ -12776,6 +12781,8 @@ class ImportSpecifier extends ImportSpecifierBase {
12776
12781
}
12777
12782
set(structure) {
12778
12783
callBaseSet(ImportSpecifierBase.prototype, this, structure);
12784
+ if (structure.isTypeOnly != null)
12785
+ this.setIsTypeOnly(structure.isTypeOnly);
12779
12786
if (structure.name != null)
12780
12787
this.setName(structure.name);
12781
12788
if (structure.alias != null)
@@ -12790,6 +12797,7 @@ class ImportSpecifier extends ImportSpecifierBase {
12790
12797
kind: StructureKind.ImportSpecifier,
12791
12798
name: this.getName(),
12792
12799
alias: alias ? alias.getText() : undefined,
12800
+ isTypeOnly: this.isTypeOnly(),
12793
12801
});
12794
12802
}
12795
12803
}
0 commit comments