From abeebaf68ef37ab8b1c0ab04ba241f9f2124315e Mon Sep 17 00:00:00 2001 From: Evert Pot Date: Sat, 16 Jun 2018 13:15:24 -0700 Subject: [PATCH 1/2] The options argument is optional in the SAX package. --- types/sax/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/sax/index.d.ts b/types/sax/index.d.ts index 4c556d8aab..40d17caa4d 100644 --- a/types/sax/index.d.ts +++ b/types/sax/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for sax-js 1.x // Project: https://github.com/isaacs/sax-js // Definitions by: Asana +// Evert Pot // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -44,7 +45,7 @@ export interface Tag extends BaseTag { export declare function parser(strict: boolean, opt: SAXOptions): SAXParser; export declare class SAXParser { - constructor(strict: boolean, opt: SAXOptions); + constructor(strict: boolean, opt?: SAXOptions); // Methods end(): void;