feat: improve types for createEventDispatcher
#7224
+95
−14
Merged