@@ -8433,6 +8433,8 @@ class NamedImportExportSpecifierStructurePrinter extends NodePrinter {
84338433 else if (structure instanceof Function)
84348434 structure(specifierWriter);
84358435 else {
8436+ if (structure.isTypeOnly)
8437+ writer.write("type ");
84368438 specifierWriter.write(structure.name);
84378439 if (!StringUtils.isNullOrWhitespace(structure.alias)) {
84388440 if (!specifierWriter.isLastNewLine())
@@ -12167,6 +12169,8 @@ class ExportSpecifier extends ExportSpecifierBase {
1216712169 }
1216812170 set(structure) {
1216912171 callBaseSet(ExportSpecifierBase.prototype, this, structure);
12172+ if (structure.isTypeOnly != null)
12173+ this.setIsTypeOnly(structure.isTypeOnly);
1217012174 if (structure.name != null)
1217112175 this.setName(structure.name);
1217212176 if (structure.alias != null)
@@ -12181,6 +12185,7 @@ class ExportSpecifier extends ExportSpecifierBase {
1218112185 kind: StructureKind.ExportSpecifier,
1218212186 alias: alias ? alias.getText() : undefined,
1218312187 name: this.getNameNode().getText(),
12188+ isTypeOnly: this.isTypeOnly(),
1218412189 });
1218512190 }
1218612191}
@@ -12776,6 +12781,8 @@ class ImportSpecifier extends ImportSpecifierBase {
1277612781 }
1277712782 set(structure) {
1277812783 callBaseSet(ImportSpecifierBase.prototype, this, structure);
12784+ if (structure.isTypeOnly != null)
12785+ this.setIsTypeOnly(structure.isTypeOnly);
1277912786 if (structure.name != null)
1278012787 this.setName(structure.name);
1278112788 if (structure.alias != null)
@@ -12790,6 +12797,7 @@ class ImportSpecifier extends ImportSpecifierBase {
1279012797 kind: StructureKind.ImportSpecifier,
1279112798 name: this.getName(),
1279212799 alias: alias ? alias.getText() : undefined,
12800+ isTypeOnly: this.isTypeOnly(),
1279312801 });
1279412802 }
1279512803}
0 commit comments