fixed typehint for EventDispatcher to use interface