An open API service indexing awesome lists of open source software.

https://github.com/icholy/eventfield


https://github.com/icholy/eventfield

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# EventField:

> Type Safe Event Fields

**Usage:**

``` ts

class MyThing {

public FooEvent = new EventField();

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

let thing = new MyThing();

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

```