mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #3059 from chbrown/master
htmlparser2: add aliases for write/end; add Parser constructor 'options' arg
This commit is contained in:
Vendored
+10
-2
@@ -61,18 +61,26 @@ declare module "htmlparser2" {
|
||||
}
|
||||
|
||||
export class Parser {
|
||||
constructor(handler: Handler);
|
||||
constructor(handler: Handler, options?: Options);
|
||||
|
||||
/***
|
||||
* Parses a chunk of data and calls the corresponding callbacks.
|
||||
* @param input
|
||||
*/
|
||||
write(input:string):void;
|
||||
/***
|
||||
* alias for backwards compat
|
||||
*/
|
||||
parseChunk(input:string):void;
|
||||
|
||||
/***
|
||||
* Parses the end of the buffer and clears the stack, calls onend.
|
||||
*/
|
||||
end():void;
|
||||
/***
|
||||
* alias for backwards compat
|
||||
*/
|
||||
done():void;
|
||||
|
||||
|
||||
/***
|
||||
@@ -86,4 +94,4 @@ declare module "htmlparser2" {
|
||||
*/
|
||||
reset():void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user