Skip to content

Commit f9a0b53

Browse files
authored
Clarify what off('*') does
Fixes #150
1 parent 13905bd commit f9a0b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function mitt<Events extends Record<EventType, unknown>>(
7070
/**
7171
* Remove an event handler for the given type.
7272
* If `handler` is omitted, all handlers of the given type are removed.
73-
* @param {string|symbol} type Type of event to unregister `handler` from, or `'*'`
73+
* @param {string|symbol} type Type of event to unregister `handler` from (`'*'` to remove a wildcard handler)
7474
* @param {Function} [handler] Handler function to remove
7575
* @memberOf mitt
7676
*/

0 commit comments

Comments
 (0)