Type alias Callback<P, R, E>

Callback<P, R, E>: {
    (e, ...params): R;
    (e?, ...params): R;
}

Type Parameters

  • P extends any[] = []

  • R = any

  • E extends Error = Error

Type declaration

    • (e, ...params): R
    • Generic callback

      Parameters

      • e: E
      • Rest ...params: Partial<P>

      Returns R

    • (e?, ...params): R
    • Generic callback

      Parameters

      • Optional e: null
      • Rest ...params: P

      Returns R

Generated using TypeDoc