Skip to main content
default.DuplexOptions - stream - Node documentation
interface default.DuplexOptions

Usage in Deno

import mod from "node:stream";

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