Navigation Menu

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 targos committed Jan 14, 2022
1 parent 3e188ca commit 9fe304b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/internal/event_target.js
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 9fe304b

Please sign in to comment.