[htmlparser2] Add exported WritableStream class

This commit is contained in:
Linus Unnebäck
2017-08-20 22:16:32 +02:00
parent 924fafffc0
commit 3b84f66a89

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);