default.DuplexOptions - Node documentation
interface default.DuplexOptions

Usage in Deno

import type default from "node:stream";
type { DuplexOptions } = default;

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