Fix the type signature for addEventListener

The function addEventListener defines an effect that returns nothing.
Reflecting that in the type signature.