8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4a833 commit 80c1f5cCopy full SHA for 80c1f5c
doc/api/events.md
@@ -1337,7 +1337,7 @@ changes:
1337
-->
1338
1339
* `emitter` {EventEmitter}
1340
-* `name` {string}
+* `name` {string|symbol}
1341
* `options` {Object}
1342
* `signal` {AbortSignal} Can be used to cancel waiting for the event.
1343
* Returns: {Promise}
lib/events.js
@@ -967,7 +967,7 @@ function getMaxListeners(emitterOrTarget) {
967
* Creates a `Promise` that is fulfilled when the emitter
968
* emits the given event.
969
* @param {EventEmitter} emitter
970
- * @param {string} name
+ * @param {string | symbol} name
971
* @param {{ signal: AbortSignal; }} [options]
972
* @returns {Promise}
973
*/
0 commit comments