Generic type for onSomeEvent, which is a function itself.
onSomeEvent
Adds a listener to the event.
The callback to add.
A function to remove the listener.
Generic type for
onSomeEvent
, which is a function itself.