import { Writable } from "https://deno.land/x/html_parser@v0.1.3/src/deps.ts";
A bit simpler than readable streams.
Implement an async ._write(chunk, encoding, cb)
, and it'll handle all
the drain event emission and buffering.
Properties
optional
_final: (this: Writable, callback: (error?: Error | null | undefined) => void) => voidMethods
_destroy(err: Error | null, cb: (error?: Error | null) => void)
_write(): void
chunk: any,
encoding: string,
cb: (error?: Error | null) => void,
cork()
destroy(err?: Error | null, cb?: () => void)
end(cb?: () => void): void
end(chunk: any, cb?: () => void): void
end(): void
chunk: any,
encoding: WritableEncodings,
cb?: () => void,
setDefaultEncoding(encoding: string)
uncork()
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean
write(): boolean
chunk: any,
encoding: WritableEncodings | null,
cb?: (error: Error | null | undefined) => void,
[captureRejectionSymbol](err?: Error)