make  publishevent typed
Merge pull request #10 from jaspervp/113_typed_publish_event

make  publishEvent typed