import { type TypedEventBroadcaster } from "https://deno.land/x/evtemitter@v3.1.0/mod.ts";
Interface for classes that aren't EventEmitter
s, but still expose a
strictly typed emit
method.
Type Parameters
EmitEvents extends CustomEventMap
Methods
emit<Ev extends EventNames<EmitEvents>>(ev: Ev, ...args: CustomEventDetailParameter<EmitEvents, Ev>): this