Skip to content

Commit

Permalink
doc, typings: events.once accepts symbol event type
Browse files Browse the repository at this point in the history
PR-URL: #53542
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Renegade334 authored and marco-ippolito committed Aug 19, 2024
1 parent c7e4c3d commit 4187b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ changes:
-->

* `emitter` {EventEmitter}
* `name` {string}
* `name` {string|symbol}
* `options` {Object}
* `signal` {AbortSignal} Can be used to cancel waiting for the event.
* Returns: {Promise}
Expand Down
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ function getMaxListeners(emitterOrTarget) {
* Creates a `Promise` that is fulfilled when the emitter
* emits the given event.
* @param {EventEmitter} emitter
* @param {string} name
* @param {string | symbol} name
* @param {{ signal: AbortSignal; }} [options]
* @returns {Promise}
*/
Expand Down

0 comments on commit 4187b81

Please sign in to comment.