Skip to content

Commit 64bbf8b

Browse files
committed
jsdoc / tsdef : extend jsdoc for EventEmitter#emit to properly reflect its ability to have any amount of arguments
https://github.com/photonstorm/phaser3-docs/issues/17
1 parent 798356c commit 64bbf8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/events/EventEmitter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var EventEmitter = new Class({
9494
* @since 3.0.0
9595
*
9696
* @param {(string|symbol)} event - The event name.
97+
* @param {...*} [args] - Additional arguments that will be passed to the event handler.
9798
*
9899
* @return {boolean} `true` if the event had listeners, else `false`.
99100
*/

0 commit comments

Comments
 (0)