doc, typings: events.once accepts symbol event type

PR-URL: https://github.com/nodejs/node/pull/53542
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
René
2024-06-27 22:56:25 +01:00
committed by GitHub
parent 895fcb0546
commit 9cd9aa8dfd
2 changed files with 2 additions and 2 deletions

View File

@@ -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}

View File

@@ -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}
*/