From a4b876dd602cff97beb3bd593c773e993bbc0b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ganesh=20Prasannah=20=E2=9C=85?= Date: Sat, 13 Jul 2019 03:22:00 +0530 Subject: [PATCH] @types/htmlparser2 Make all DomHandler a type, so we can use only the events we need. (#36851) --- types/htmlparser2/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/htmlparser2/index.d.ts b/types/htmlparser2/index.d.ts index c10dea047e..f01f1ab7ce 100644 --- a/types/htmlparser2/index.d.ts +++ b/types/htmlparser2/index.d.ts @@ -3,7 +3,9 @@ // Definitions by: James Roland Cabresos // Linus Unnebäck // Johan Davidsson +// GP // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// /// @@ -61,7 +63,7 @@ export declare class WritableStream extends Writable { } export declare class Parser { - constructor(handler: DomHandler, options?: ParserOptions); + constructor(handler: Partial, options?: ParserOptions); /*** * Parses a chunk of data and calls the corresponding callbacks.