linting fixes
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
import * as _ from "lodash";
|
||||
import {BaseXmlComponent} from "./base";
|
||||
import { BaseXmlComponent } from "./base";
|
||||
|
||||
export abstract class XmlComponent extends BaseXmlComponent {
|
||||
protected root: Array<BaseXmlComponent>;
|
||||
protected root: BaseXmlComponent[];
|
||||
|
||||
constructor(rootKey: string) {
|
||||
super(rootKey);
|
||||
this.root = new Array<BaseXmlComponent>();
|
||||
}
|
||||
|
||||
replaceKey(): void {
|
||||
public replaceKey(): void {
|
||||
// console.log(this.rootKey);
|
||||
// console.log(this.root);
|
||||
if (this.root !== undefined) {
|
||||
this.root.forEach(root => {
|
||||
this.root.forEach((root) => {
|
||||
if (root && root instanceof BaseXmlComponent) {
|
||||
root.replaceKey();
|
||||
}
|
||||
@ -27,4 +27,4 @@ export abstract class XmlComponent extends BaseXmlComponent {
|
||||
export * from "./attributes"
|
||||
export * from "./default-attributes";
|
||||
export * from "./unit";
|
||||
export * from "./property";
|
||||
export * from "./property";
|
||||
|
Reference in New Issue
Block a user