@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    188
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    188

Package Sidebar

Install

npm i @gamestdio/signals

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

18.7 kB

Total Files

13

Last publish

Collaborators

  • endel