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: #41311
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and danielleadams committed Feb 1, 2022
1 parent 51e6ed0 commit 1280e19
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 1280e19

Please sign in to comment.