Skip to main content
internal.DuplexOptions - node__stream.d.ts - Node documentation
interface internal.DuplexOptions

Usage in Deno

```typescript import { internal } from "node: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