Hacker News new | ask | show | jobs
by chrismorgan 1426 days ago
Or more importantly, varying the event type based on the event name.

e.g. addEventListener("click", (MouseEvent): void) versus addEventListener("input", (InputEvent): void)