Type alias StreamReasonToCode

StreamReasonToCode: ((type, reason?) => number)

Type declaration

    • (type, reason?): 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