A simple strongly-typed pub/sub/fire eventing system.
Перейти к файлу
Alexander T c99688d447 updated deps, start to use npm's package-lock feature (#9) 2018-10-04 21:43:35 -07:00
spec Add es2015 build target (#2) 2018-05-16 12:09:16 -07:00
src Improve the performance of .fire by not cloning the subscriber list (#6) 2018-08-24 14:05:13 -07:00
tsconfig Add es2015 build target (#2) 2018-05-16 12:09:16 -07:00
.editorconfig Add tests/Travis CI/.editorconfig. Improve README. (#1) 2018-02-18 00:55:20 -08:00
.gitignore updated deps, start to use npm's package-lock feature (#9) 2018-10-04 21:43:35 -07:00
.npmignore Add .npmignore so we don't publish node_modules 2017-05-09 16:23:05 -07:00
.travis.yml Travis CI - fix node_js version (#4) 2018-05-22 21:17:58 -07:00
LICENSE Initial commit 2017-05-09 15:28:02 -07:00
README.md readme improvements (#8) 2018-09-10 11:36:38 -07:00
package-lock.json updated deps, start to use npm's package-lock feature (#9) 2018-10-04 21:43:35 -07:00
package.json updated deps, start to use npm's package-lock feature (#9) 2018-10-04 21:43:35 -07:00
tsconfig.json Change target from es2015 to es5 (#3) 2018-05-18 15:57:27 -07:00
tslint.json Add tests/Travis CI/.editorconfig. Improve README. (#1) 2018-02-18 00:55:20 -08:00

README.md

SubscribableEvent

GitHub license npm version Build Status David David

A simple strongly-typed pub/sub/fire eventing system

Installation

npm install --save subscribableevent

Basic Example

const event = new SubscribableEvent<(payload: string) => void>(); 

event.subscribe((payload: string) => {
    console.log(payload);
});

event.fire('Payload Params');

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.