AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0
EventHandler
Event handler callback type
Signature
type EventHandler<T = unknown> = (payload: T) => void | Promise<void>;