Type AliasEventHandler<T>

EventHandler<T>: ((payload: T) => void)

Defines the shape of an event handler function.

Type Parameters

  • T = any

    The type of the payload that the handler will receive.

Type declaration

    • (payload): void
    • Parameters

      • payload: T

        The data associated with the event.

      Returns void