Type representing a function that publishes events.
The type of the event data.
The name of the event.
The data associated with the event.
Type representing a function that publishes events.