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!" });
MOVED: This project has moved to https://github.com/RobotlegsJS/SignalsJS
TypeScriptMIT
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!" });