Merge pull request #19165 from LinusU/htmlparser2-writable-stream

[htmlparser2] Add exported WritableStream class
This commit is contained in:
Nathan Shively-Sanders
2017-09-07 09:57:33 -07:00
committed by GitHub
+7 -1
View File
@@ -1,10 +1,12 @@
// Type definitions for htmlparser2 v3.7.x
// Project: https://github.com/fb55/htmlparser2/
// Definitions by: James Roland Cabresos <https://github.com/staticfunction>
// Linus Unnebäck <https://github.com/LinusU>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="node"/>
import { Writable } from 'stream'
export interface Handler {
onopentag?: (name: string, attribs: { [type: string]: string }) => void;
@@ -60,6 +62,10 @@ export interface Options {
recognizeSelfClosing?: boolean;
}
export declare class WritableStream extends Writable {
constructor(handler: Handler, options?: Options);
}
export declare class Parser {
constructor(handler: Handler, options?: Options);