Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4187b81

Browse files
Renegade334marco-ippolito
authored andcommitted
doc, typings: events.once accepts symbol event type
PR-URL:#53542Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parentc7e4c3d commit4187b81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎doc/api/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ changes:
13331333
-->
13341334

13351335
*`emitter` {EventEmitter}
1336-
*`name` {string}
1336+
*`name` {string|symbol}
13371337
*`options` {Object}
13381338
*`signal` {AbortSignal} Can be used to cancel waiting for the event.
13391339
* Returns: {Promise}

‎lib/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ function getMaxListeners(emitterOrTarget) {
966966
* Creates a `Promise` that is fulfilled when the emitter
967967
* emits the given event.
968968
*@param {EventEmitter} emitter
969-
*@param {string} name
969+
*@param {string | symbol} name
970970
*@param {{ signal: AbortSignal; }} [options]
971971
*@returns {Promise}
972972
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp