Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method EventEmitter.prototype.passOnlyDetail
import { EventEmitter } from "https://deno.land/x/evtemitter@v3.1.0/mod.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