From 5a75d351d03f34d7cbbce2f5a7a44c45ec11cf6a Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Thu, 28 Jul 2022 21:05:54 +0000 Subject: [PATCH] port changes from @azure/core-http to adapt to changes introduced in @types/xml2js v0.4.11 --- lib/util/xml.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/xml.ts b/lib/util/xml.ts index 829e5e02..b11ff5cd 100644 --- a/lib/util/xml.ts +++ b/lib/util/xml.ts @@ -23,7 +23,7 @@ export function parseXML(str: string): Promise { if (!str) { reject(new Error("Document is empty")); } else { - xmlParser.parseString(str, (err?: Error, res?: any) => { + xmlParser.parseString(str, (err: any, res: any) => { if (err) { reject(err); } else {