mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 08:34:06 +03:00
Remove TsIndexSignature from typescript::strip (#922)
This commit is contained in:
parent
881c3a369f
commit
db0a56514d
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "swc_ecma_transforms"
|
||||
version = "0.17.1"
|
||||
version = "0.17.2"
|
||||
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
||||
license = "Apache-2.0/MIT"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
|
@ -781,6 +781,7 @@ impl Fold for Strip {
|
||||
let members = members.fold_children_with(self);
|
||||
|
||||
members.move_flat_map(|member| match member {
|
||||
ClassMember::TsIndexSignature(..) => None,
|
||||
ClassMember::Constructor(Constructor { body: None, .. }) => None,
|
||||
ClassMember::Method(ClassMethod {
|
||||
is_abstract: true, ..
|
||||
|
@ -671,3 +671,11 @@ to!(
|
||||
}
|
||||
}"#
|
||||
);
|
||||
|
||||
to!(
|
||||
issue_921,
|
||||
"export abstract class Kernel {
|
||||
[key: string]: any
|
||||
}",
|
||||
"export abstract class Kernel {}"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user