mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
@types/htmlparser2 Make all DomHandler a <Partial> type, so we can use only the events we need. (#36851)
This commit is contained in:
parent
fdc141cf05
commit
a4b876dd60
4
types/htmlparser2/index.d.ts
vendored
4
types/htmlparser2/index.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user