import { default } from "https://deno.land/x/evtemitter@v3.1.0/EventEmitter.ts";
Creates a wrapper function around a given callback which passes the value of the detail
property of a CustomEvent to the callback
Type Parameters
Ev extends ReservedOrUserEventNames<ReservedEvents, UserEvents>
Parameters
callback: ReservedOrUserListenerOn<ReservedEvents, UserEvents, Ev>
the callback to wrap
Returns
ReservedOrUserListenerAddEventListener<ReservedEvents, UserEvents, Ev>