Type alias Web3EventCallback<T>

Web3EventCallback<T>: ((params) => void | Promise<void>)

Type for event callback functions

Type Parameters

  • T

    The type of data passed to the callback

Type declaration

    • (params): void | Promise<void>
    • Parameters

      • params: T

      Returns void | Promise<void>