mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 08:17:54 +08:00
[htmlparser2] Add exported WritableStream class
This commit is contained in:
8
types/htmlparser2/index.d.ts
vendored
8
types/htmlparser2/index.d.ts
vendored
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user