You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Behaves the same as { @link on:WITH_EVENTS | the overload which accepts one or more event names }, but listens to _all_ events.
127
-
* @param listener (optional) the listener to be called.
126
+
* Add an event listener for all event types.
127
+
* @param listener An event listener.
128
128
*/
129
129
on(listener?: EventListener<T,keyofT>): void;
130
130
/**
@@ -159,16 +159,16 @@ export default class EventEmitter<T> {
159
159
160
160
/**
161
161
* {@label WITH_EVENTS}
162
-
* Remove one or more event listeners
163
-
* @param eventOrEvents the name of the event whose listener is to be removed.
164
-
* @param listener (optional) the listener to remove. If not supplied, all listeners are removed.
162
+
* Remove one or more event listeners.
163
+
* @param eventOrEvents An event name, or an array of event names.
164
+
* @param listener An event listener. If not supplied, all listeners are removed.
165
165
*
166
166
* @typeParam K A type which allows one or more names of the properties of {@link T}. TypeScript will infer this type based on the {@link eventOrEvents} argument.
0 commit comments