@@ -686,7 +686,8 @@ namespace ts {
686
686
return visibleDefaultBinding && updateImportDeclaration ( decl , /*decorators*/ undefined , decl . modifiers , updateImportClause (
687
687
decl . importClause ,
688
688
visibleDefaultBinding ,
689
- /*namedBindings*/ undefined
689
+ /*namedBindings*/ undefined ,
690
+ decl . importClause . isTypeOnly ,
690
691
) , rewriteModuleSpecifier ( decl , decl . moduleSpecifier ) ) ;
691
692
}
692
693
if ( decl . importClause . namedBindings . kind === SyntaxKind . NamespaceImport ) {
@@ -695,7 +696,8 @@ namespace ts {
695
696
return visibleDefaultBinding || namedBindings ? updateImportDeclaration ( decl , /*decorators*/ undefined , decl . modifiers , updateImportClause (
696
697
decl . importClause ,
697
698
visibleDefaultBinding ,
698
- namedBindings
699
+ namedBindings ,
700
+ decl . importClause . isTypeOnly ,
699
701
) , rewriteModuleSpecifier ( decl , decl . moduleSpecifier ) ) : undefined ;
700
702
}
701
703
// Named imports (optionally with visible default)
@@ -708,7 +710,8 @@ namespace ts {
708
710
updateImportClause (
709
711
decl . importClause ,
710
712
visibleDefaultBinding ,
711
- bindingList && bindingList . length ? updateNamedImports ( decl . importClause . namedBindings , bindingList ) : undefined
713
+ bindingList && bindingList . length ? updateNamedImports ( decl . importClause . namedBindings , bindingList ) : undefined ,
714
+ decl . importClause . isTypeOnly ,
712
715
) ,
713
716
rewriteModuleSpecifier ( decl , decl . moduleSpecifier )
714
717
) ;
@@ -1018,7 +1021,13 @@ namespace ts {
1018
1021
resultHasScopeMarker = true ;
1019
1022
// Always visible if the parent node isn't dropped for being not visible
1020
1023
// Rewrite external module names if necessary
1021
- return updateExportDeclaration ( input , /*decorators*/ undefined , input . modifiers , input . exportClause , rewriteModuleSpecifier ( input , input . moduleSpecifier ) ) ;
1024
+ return updateExportDeclaration (
1025
+ input ,
1026
+ /*decorators*/ undefined ,
1027
+ input . modifiers ,
1028
+ input . exportClause ,
1029
+ rewriteModuleSpecifier ( input , input . moduleSpecifier ) ,
1030
+ input . isTypeOnly ) ;
1022
1031
}
1023
1032
case SyntaxKind . ExportAssignment : {
1024
1033
// Always visible if the parent node isn't dropped for being not visible
0 commit comments