From f2a1d5e5d27e2cf40e45b9e8a573007d7d20e37f Mon Sep 17 00:00:00 2001 From: Louis-Dominique Dubeau Date: Wed, 8 Jan 2020 11:28:26 -0500 Subject: [PATCH] fix: fix some typing mistakes --- src/saxes.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/saxes.ts b/src/saxes.ts index 1335cc75..29e3124f 100644 --- a/src/saxes.ts +++ b/src/saxes.ts @@ -95,7 +95,7 @@ const S_CLOSE_TAG_SAW_WHITE = 43; // /** * The list of supported events. */ -exports.EVENTS = [ +export const EVENTS = [ "text", "processinginstruction", "doctype", @@ -2562,8 +2562,9 @@ export interface SaxesParserPlain extends SaxesParserImpl { } export interface SaxesParserConstructor { - new (opt: SaxesOptions & { xmlns: true }): SaxesParserNS; - new (opt: SaxesOptions & { xmlns?: false | undefined }): SaxesParserPlain; + new (opt?: SaxesOptions & { xmlns: true }): SaxesParserNS; + new (opt?: SaxesOptions & { xmlns?: false | undefined }): SaxesParserPlain; + new (opt?: SaxesOptions): SaxesParser; } export const SaxesParser: SaxesParserConstructor = SaxesParserImpl;