Type alias StreamReasonToCode

StreamReasonToCode: ((type: "read" | "write", reason?: any) => number)

Type declaration

    • (type: "read" | "write", reason?: any): number
    • Maps reason (most likely an exception) to a stream code. Use 0 to indicate unknown/default reason.

      Parameters

      • type: "read" | "write"
      • Optional reason: any

      Returns number

Generated using TypeDoc