File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import defined from "./defined.js";
7
7
* exposed as a property for others to subscribe to.
8
8
*
9
9
* @alias Event
10
- * @template Listener extends Function = Function
10
+ * @template Listener extends (...args: any[]) => any = (...args: any[]) => any
11
11
* @constructor
12
12
* @example
13
13
* MyObject.prototype.myListener = function(arg1, arg2) {
@@ -120,7 +120,7 @@ function compareNumber(a, b) {
120
120
/**
121
121
* Raises the event by calling each registered listener with all supplied arguments.
122
122
*
123
- * @param {...Object } arguments This method takes any number of parameters and passes them through to the listener functions.
123
+ * @param {...Parameters<Listener> } arguments This method takes any number of parameters and passes them through to the listener functions.
124
124
*
125
125
* @see Event#addEventListener
126
126
* @see Event#removeEventListener
You can’t perform that action at this time.
0 commit comments