import { fromEvent } from "https://deno.land/x/stream_observables@v1.3/sources/from-event.ts";
Creates an observable from an EventTarget
.
Each event is turned into an item for the observable.
Type Parameters
K extends EventTarget
Parameters
el: K
Event target to create an observable from.
optional
options: boolean | AddEventListenerOptionsReturns
New observable that emits values from the event target.