Skip to content

Commit

Permalink
Add deprecation warning to addChildElement (#2476)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolanmiu authored Dec 25, 2023
1 parent dbe0586 commit a3c796a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/file/xml-components/xml-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a3c796a

Please sign in to comment.