From 79a470e8fae6d55cba3078334ff593200d44b31d Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 22 Mar 2023 01:18:25 +0100 Subject: [PATCH] refactor(types): allow to omit options when creating a XMLBuilder instance (#556) The code allows to pass undefined for options. --- src/fxp.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fxp.d.ts b/src/fxp.d.ts index 62237e5e..f2b0e923 100644 --- a/src/fxp.d.ts +++ b/src/fxp.d.ts @@ -94,6 +94,6 @@ export class XMLValidator{ static validate( xmlData: string, options?: validationOptionsOptional): true | ValidationError; } export class XMLBuilder { - constructor(options: XmlBuilderOptionsOptional); + constructor(options?: XmlBuilderOptionsOptional); build(jObj: any): any; }