Fix styling and linting

This commit is contained in:
Dolan Miu
2018-05-06 03:19:36 +01:00
parent 79b5b3a1f6
commit 573dd753a7
14 changed files with 112 additions and 81 deletions

View File

@ -12,7 +12,7 @@ export abstract class XmlComponent extends BaseXmlComponent {
public prepForXml(): IXmlableObject {
const children = this.root
.filter(c => {
.filter((c) => {
if (c instanceof BaseXmlComponent) {
return !c.isDeleted;
}
@ -30,11 +30,14 @@ export abstract class XmlComponent extends BaseXmlComponent {
};
}
public addChildElement(child: XmlComponent | string) {
// TODO: Unused method
public addChildElement(child: XmlComponent | string): XmlComponent {
this.root.push(child);
return this;
}
public delete() {
public delete(): void {
this.deleted = true;
}
}