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
- core/bentley/src/BeEvent.ts Line 187
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.