SignalsJS
TypeScript port of AS3 Signals. 13kb compressed.
Usage
import { Signal } from "signals.js";
var signal = new Signal();
signal.add(data => {
console.log(data.message);
});
signal.dispatch({ message: "hello signal!" });GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up| Type | Name | Latest commit message | Commit time |
|---|---|---|---|
| Failed to load latest commit information. | |||
|
|
.vscode | ||
|
|
dist | ||
|
|
src | ||
|
|
test | ||
|
|
.codeclimate.yml | ||
|
|
.editorconfig | ||
|
|
.eslintignore | ||
|
|
.eslintrc | ||
|
|
.gitignore | ||
|
|
.istanbul.yml | ||
|
|
.npmignore | ||
|
|
.publishrc | ||
|
|
.travis.yml | ||
|
|
LICENSE.md | ||
|
|
README.md | ||
|
|
karma.conf.js | ||
|
|
package.json | ||
|
|
tsconfig.json | ||
|
|
tsconfig.test.json | ||
|
|
tsfmt.json | ||
|
|
tslint.json | ||
|
|
webpack.config.js | ||
|
|
yarn.lock | ||
TypeScript port of AS3 Signals. 13kb compressed.
import { Signal } from "signals.js";
var signal = new Signal();
signal.add(data => {
console.log(data.message);
});
signal.dispatch({ message: "hello signal!" });