We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7e4c3d commit 4187b81Copy full SHA for 4187b81
doc/api/events.md
@@ -1333,7 +1333,7 @@ changes:
1333
-->
1334
1335
* `emitter` {EventEmitter}
1336
-* `name` {string}
+* `name` {string|symbol}
1337
* `options` {Object}
1338
* `signal` {AbortSignal} Can be used to cancel waiting for the event.
1339
* Returns: {Promise}
lib/events.js
@@ -966,7 +966,7 @@ function getMaxListeners(emitterOrTarget) {
966
* Creates a `Promise` that is fulfilled when the emitter
967
* emits the given event.
968
* @param {EventEmitter} emitter
969
- * @param {string} name
+ * @param {string | symbol} name
970
* @param {{ signal: AbortSignal; }} [options]
971
* @returns {Promise}
972
*/
0 commit comments