Skip to content
Face of Cat edited this page Apr 30, 2017 · 14 revisions

The Typescript-SimpleEvents wiki!

Build Status npm version

Very very simple events system for type/java script.

Installation

In order to install it you can run:

$ npm install -g typescript-simpleevents

or, to install it locally:

$ npm install -D typescript-simpleevents

Included Event Classes

Base 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.