Typescript - Event Dispatcher