Skip to content

Commit

Permalink
Clarify what off('*') does
Browse files Browse the repository at this point in the history
Fixes #150
  • Loading branch information
developit committed Jan 31, 2022
1 parent 13905bd commit f9a0b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function mitt<Events extends Record<EventType, unknown>>(
/**
* Remove an event handler for the given type.
* If `handler` is omitted, all handlers of the given type are removed.
* @param {string|symbol} type Type of event to unregister `handler` from, or `'*'`
* @param {string|symbol} type Type of event to unregister `handler` from (`'*'` to remove a wildcard handler)
* @param {Function} [handler] Handler function to remove
* @memberOf mitt
*/
Expand Down

0 comments on commit f9a0b53

Please sign in to comment.