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é authored and Antoine du Hamel committed 2024-07-16 12:01:04 +02:00
1 parent 4d4a8338db
commit 80c1f5ce8a
2 files changed
+2 -2

No files matched your search

+1 -1
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}
+1 -1
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}
*/