ListenerType<TEvent extends { addListener: }> Type Alias

Retrieves the type of the callback function for an event type like BeEvent. For example:

const event = new BeEvent<(x: number, y: string) => void>(); const callback: ListenerType<typeof event> = (x, y) => { console.log(`${x}, ${y}`); };

Defined in

Last Updated: 24 June, 2025