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 Jun 27, 2024
1 parent 895fcb0 commit 9cd9aa8
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 @@ -1337,7 +1337,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 @@ -967,7 +967,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 9cd9aa8

Please sign in to comment.