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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Renegade334 authored and aduh95 committed Jul 16, 2024
1 parent 4d4a833 commit 80c1f5c
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 80c1f5c

Please sign in to comment.