diff --git a/types/htmlparser2/index.d.ts b/types/htmlparser2/index.d.ts index a49e0e978a..313ff56a96 100644 --- a/types/htmlparser2/index.d.ts +++ b/types/htmlparser2/index.d.ts @@ -1,10 +1,12 @@ // Type definitions for htmlparser2 v3.7.x // Project: https://github.com/fb55/htmlparser2/ // Definitions by: James Roland Cabresos +// Linus Unnebäck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// - +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);