Interface for handlers. Each handler is a function that takes an Event and doesn't return anything.

interface EventHandlers {
    [event: string]: ((e) => void);
}

Indexable

[event: string]: ((e) => void)
    • (e): void
    • Parameters

      • e: Event

      Returns void