A tiny utility to create an event that can be subscribed to.
npm add @wopjs/event
import { event, send } from "@wopjs/event";
const onDidChange = event<string>();
const dispose = onDidChange(data => console.log(data));
send(onDidChange, "data"); // logs "data"
dispose();
MIT @ wopjs