Skip to content

gamestdio/signals

 
 

Repository files navigation

@gamestdio/signals

Light-weight, strongly-typed messaging system.

Usage

import { Signal } from "@gamestdio/signals";

let signal = new Signal();

signal.add((data) => {
    console.log(data.message);
});

signal.dispatch({ message: "hello signal!" });

License

MIT

Packages

No packages published

Languages

  • TypeScript 100.0%