@gamestdio/signals
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @gamestdio/signals

Weekly Downloads

20

Version

1.0.0

License

MIT

Unpacked Size

18.7 kB

Total Files

13

Last publish

Collaborators

  • endel