I am working on an event (pub/sub) system and I need to define the events and payloads upfront. Having trouble restricting the publish method to EVENT, EVENT[PA
publish