Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface DuplexOptions
implements ReadableOptions, WritableOptions
import { type DuplexOptions } from "https://deno.land/std@0.167.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