Type Alias Callback<Data>

Callback: (data: Data) => void

A function to be invoked in reaction to an event. See EventData for the data types used by each event type.

Type Parameters

  • Data

Type declaration

    • (data: Data): void
    • Parameters

      Returns void