From 99e7d940eec82fbc94753416935f97a60d455c85 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 27 Aug 2025 16:32:38 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(index.d.ts):=20extend=20create?= =?UTF-8?q?=20method=20options=20to=20include=20rootElement=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index dd099f7..2346427 100644 --- a/index.d.ts +++ b/index.d.ts @@ -509,7 +509,9 @@ declare global { * @param data object or array (map with string keys as nodes (-KEY will be attribute in parent node)) * @param options options */ - create(data: {[key: string]: any}, options?: {}): string + create(data: {[key: string]: any}, options?: { + rootElement?: string + }): string /** * parse xml string to json