@types/htmlparser2 Make all DomHandler a <Partial> type, so we can use only the events we need. (#36851)

This commit is contained in:
Ganesh Prasannah ✅ 2019-07-13 03:22:00 +05:30 committed by Armando Aguirre
parent fdc141cf05
commit a4b876dd60

View File

@ -3,7 +3,9 @@
// Definitions by: James Roland Cabresos <https://github.com/staticfunction>
// Linus Unnebäck <https://github.com/LinusU>
// Johan Davidsson <https://github.com/johandavidson>
// GP <https://github.com/paambaati>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
///<reference types="node"/>
///<reference types="domhandler"/>
@ -61,7 +63,7 @@ export declare class WritableStream extends Writable {
}
export declare class Parser {
constructor(handler: DomHandler, options?: ParserOptions);
constructor(handler: Partial<DomHandler>, options?: ParserOptions);
/***
* Parses a chunk of data and calls the corresponding callbacks.