Strongly Typed Events - Signals
Signals are the most barebone of all events. They don't contain any data. They just invoke the registered handler.
Subscription made easy
An example says more than a 1000 words. Imagine if you have events like this on your class:
;//log the ticks to the console - this is a signal eventclock.onTick.subscribeconsole.log"Tick!";
Events made easy
So let's look at the implementation from a TypeScript perspective. (Do you program NodeJs without typescript? Check this)
Need more info? Check the repo.
This project is maintained by Kees C. Bakker.