EventField
v2.0.0
Published
Event Field
Downloads
6
Readme
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);
});