We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
off('*')
1 parent 13905bd commit f9a0b53Copy full SHA for f9a0b53
src/index.ts
@@ -70,7 +70,7 @@ export default function mitt<Events extends Record<EventType, unknown>>(
70
/**
71
* Remove an event handler for the given type.
72
* 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 `'*'`
+ * @param {string|symbol} type Type of event to unregister `handler` from (`'*'` to remove a wildcard handler)
74
* @param {Function} [handler] Handler function to remove
75
* @memberOf mitt
76
*/
0 commit comments