diff --git a/crates/swc_ecma_transforms_typescript/src/strip_type.rs b/crates/swc_ecma_transforms_typescript/src/strip_type.rs index 406cc9c6a034d..67c8cd9ef74d4 100644 --- a/crates/swc_ecma_transforms_typescript/src/strip_type.rs +++ b/crates/swc_ecma_transforms_typescript/src/strip_type.rs @@ -169,6 +169,16 @@ impl VisitMut for StripType { prop.accessibility = None; prop.visit_mut_children_with(self); } + + fn visit_mut_ts_import_equals_decl(&mut self, n: &mut TsImportEqualsDecl) { + n.id.visit_mut_with(self); + } + + fn visit_mut_ts_param_prop(&mut self, n: &mut TsParamProp) { + // skip accessibility + n.decorators.visit_mut_with(self); + n.param.visit_mut_with(self); + } } fn should_retain_module_item(module_item: &ModuleItem) -> bool {