Skip to content

icholy/EventField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published