Skip to main content
Go to Latest
interface DuplexOptions
implements ReadableOptions, WritableOptions
import { type DuplexOptions } from "https://deno.land/std@0.145.0/node/_stream.d.ts";

Properties

optional
allowHalfOpen: boolean | undefined
optional
readableObjectMode: boolean | undefined
optional
writableObjectMode: boolean | undefined
optional
readableHighWaterMark: number | undefined
optional
writableHighWaterMark: number | undefined
optional
writableCorked: number | undefined

Methods

optional
construct(this: Duplex, callback: (error?: Error | null) => void): void
optional
read(this: Duplex, size: number): void
optional
write(
this: Duplex,
chunk: any,
encoding: BufferEncoding,
callback: (error?: Error | null) => void,
): void
optional
writev(
this: Duplex,
chunks: Array<{ chunk: any; encoding: BufferEncoding; }>,
callback: (error?: Error | null) => void,
): void
optional
final(this: Duplex, callback: (error?: Error | null) => void): void
optional
destroy(
this: Duplex,
error: Error | null,
callback: (error: Error | null) => void,
): void