import { on } from "https://deno.land/x/effection@3.0.0-beta.3/lib/mod.ts";
Create a Stream of events from any EventTarget.
See the guide on Streams and Subscriptions for details on how to use streams.
Type Parameters
T extends EventTarget
K extends EventList<T> | (string & { })