Repository navigation
Home
Face of Cat edited this page Apr 30, 2017
·
14 revisions
Very very simple events system for type/java script.
In order to install it you can run:
$ npm install -g typescript-simpleeventsor, to install it locally:
$ npm install -D typescript-simpleeventsBase Event - base class used by all the other events
Simple Event - simple event implementation that doesn't provide any additional data or return values.
Simple Data Event - simple event implementation that provides data to its callbacks.
Simple Cancelable Event - an event type that returns a (boolean | undefined) value allowing its callback functions to cancel an action.
Simple Cancelable Data Event - an event type that provides data to its callbacks and returns a (boolean | undefined) value allowing callback functions to cancel an action.