Add deprecation warning to addChildElement (#2476)

This commit is contained in:
Dolan
2023-12-25 02:54:46 +00:00
committed by GitHub
parent dbe0586f70
commit a3c796aae3

View File

@ -42,6 +42,9 @@ export abstract class XmlComponent extends BaseXmlComponent {
};
}
/**
* @deprecated Do not use this method. It is only used internally by the library. It will be removed in a future version.
*/
public addChildElement(child: XmlComponent | string): XmlComponent {
this.root.push(child);