From 3b84f66a894cf81390707ff99685710bbf0eecd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sun, 20 Aug 2017 22:16:32 +0200 Subject: [PATCH] [htmlparser2] Add exported WritableStream class --- types/htmlparser2/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);