2.0.0 • Published 7 years ago

EventField v2.0.0

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

EventField:

Type Safe Event Fields

Usage:

class MyThing {

  public FooEvent = new EventField<string>();

  constructor() {
    setInterval(_ => this.FooEvent.emit("foo"), 1000);
  }
}

let thing = new MyThing();

thing.FooEvent.on((payload) => {
  console.log(payload);
});