TsSimpleAst
Removing
Given the source file for following code:
enum MyEnum {
myMember
}
Removing can be done as follows:
const member = sourceFile.getEnum("MyEnum")!.getMember("myMember")!;
member.remove();
So the file above would now contain the following code:
enum MyEnum {
}
Support
Currently removing is implemented individually for each kind of node. If you find something is not implemented, please open an issue on github.