diff options
| author | Jason Miller <[email protected]> | 2022-01-31 09:28:26 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-31 09:28:26 -0500 |
| commit | f9a0b5397edfe10c8ad0629e08ae4f123b4d65fa (patch) | |
| tree | cc0c86cc52534a666ae78bb0dd6a6ff5a08a85d5 /src | |
| parent | 13905bd4009e83f1876f2d31419e23cdbf4f9b48 (diff) | |
Clarify what `off('*')` does
Fixes #150
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index dfc0c1f..7301520 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 */ |
