From a3c796aae39308d1917207ce2c0d195a76a1c744 Mon Sep 17 00:00:00 2001 From: Dolan Date: Mon, 25 Dec 2023 02:54:46 +0000 Subject: [PATCH] Add deprecation warning to addChildElement (#2476) --- src/file/xml-components/xml-component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/file/xml-components/xml-component.ts b/src/file/xml-components/xml-component.ts index 93bdbf19fb..f5181eec8a 100644 --- a/src/file/xml-components/xml-component.ts +++ b/src/file/xml-components/xml-component.ts @@ -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);