Skip to content

Commit

Permalink
fix: correct EventBus#off type definition
Browse files Browse the repository at this point in the history
Adding generic (unknown) type is necessary in recent TypeScript versions.
  • Loading branch information
nikku committed Jan 10, 2025
1 parent 9affb14 commit 4a5ec79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/EventBus.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ EventBus.prototype.once = function(events, priority, callback, that) {
* If no callback is given, all listeners for a given event name are being removed.
*
* @param {string|string[]} events
* @param {EventBusEventCallback} [callback]
* @param {EventBusEventCallback<unknown>} [callback]
*/
EventBus.prototype.off = function(events, callback) {

Expand Down

0 comments on commit 4a5ec79

Please sign in to comment.