Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

allowHalfOpen?: boolean
autoDestroy?: boolean
decodeStrings?: boolean
defaultEncoding?: BufferEncoding
emitClose?: boolean
encoding?: BufferEncoding
highWaterMark?: number
objectMode?: boolean
readableHighWaterMark?: number
readableObjectMode?: boolean
signal?: AbortSignal

When provided the corresponding AbortController can be used to cancel an asynchronous action.

writableCorked?: number
writableHighWaterMark?: number
writableObjectMode?: boolean

Methods

  • construct(this: Duplex, callback: ((error?: null | Error) => void)): void
  • Parameters

    • this: Duplex
    • callback: ((error?: null | Error) => void)
        • (error?: null | Error): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

  • destroy(this: Duplex, error: null | Error, callback: ((error: null | Error) => void)): void
  • Parameters

    • this: Duplex
    • error: null | Error
    • callback: ((error: null | Error) => void)
        • (error: null | Error): void
        • Parameters

          • error: null | Error

          Returns void

    Returns void

  • final(this: Duplex, callback: ((error?: null | Error) => void)): void
  • Parameters

    • this: Duplex
    • callback: ((error?: null | Error) => void)
        • (error?: null | Error): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

  • read(this: Duplex, size: number): void
  • Parameters

    Returns void

  • write(this: Duplex, chunk: any, encoding: BufferEncoding, callback: ((error?: null | Error) => void)): void
  • Parameters

    • this: Duplex
    • chunk: any
    • encoding: BufferEncoding
    • callback: ((error?: null | Error) => void)
        • (error?: null | Error): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

  • writev(this: Duplex, chunks: { chunk: any; encoding: BufferEncoding }[], callback: ((error?: null | Error) => void)): void
  • Parameters

    • this: Duplex
    • chunks: { chunk: any; encoding: BufferEncoding }[]
    • callback: ((error?: null | Error) => void)
        • (error?: null | Error): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

Generated using TypeDoc