Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method default.prototype.passOnlyDetail
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