How to document an event handler in JSDoc?
The keyword is @listens
Usage example:
/**
* Outputs the event that happened
*
* @param {MyEvent} e - The observable event.
* @listens MyEvent
*/
function myEventLogger(e) {
console.log(e);
}
The corollary is the @fires keyword for raising the event.