Skip to content

Commit

Permalink
events: clarify JSDoc entries
Browse files Browse the repository at this point in the history
Split the JSDoc entries into separate blocks.

This is in preparation for enabling jsdoc/check-param-names lint rule.

PR-URL: nodejs#41311
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott committed Dec 28, 2021
1 parent 5ed7066 commit 43371dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/internal/event_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,13 @@ class EventTarget {
/**
* @callback EventTargetCallback
* @param {Event} event
*/

/**
* @typedef {{ handleEvent: EventTargetCallback }} EventListener
*/

/**
* @param {string} type
* @param {EventTargetCallback|EventListener} listener
* @param {{
Expand Down

0 comments on commit 43371dd

Please sign in to comment.