mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user