12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { XmlComponent } from "@file/xml-components";
|
|
|
|
export abstract class InitializableXmlComponent extends XmlComponent {
|
|
constructor(rootKey: string, initComponent?: InitializableXmlComponent) {
|
|
super(rootKey);
|
|
|
|
if (initComponent) {
|
|
this.root = initComponent.root;
|
|
}
|
|
}
|
|
}
|