README
Simple event
Fires all listeners, subscribed on emitter object.
Usage example
let sivent = new Sivent<string, number>();
sivent.add((sender, data) => {
console.log(sender, data);
})
sivent.invoke("hi there, ", 123);
Simple generic event realization
<script type="module">
import sivent from 'https://cdn.skypack.dev/sivent';
</script>
Fires all listeners, subscribed on emitter object.
let sivent = new Sivent<string, number>();
sivent.add((sender, data) => {
console.log(sender, data);
})
sivent.invoke("hi there, ", 123);