aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Miller <[email protected]>2020-02-21 11:16:28 -0500
committerGitHub <[email protected]>2020-02-21 11:16:28 -0500
commitfbe233dbeb6440f167fcb1090efd59a841236896 (patch)
tree5f1e81757864c1949e56a4c0c5b253dde0aabb23
parent2aba216712e66f0e33a7edeecfef70cabc24b6be (diff)
[ts] Make `type` optional in WildcardHandler. Fixes #96.
-rw-r--r--mitt.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitt.d.ts b/mitt.d.ts
index 0555a0d..4a54163 100644
--- a/mitt.d.ts
+++ b/mitt.d.ts
@@ -6,7 +6,7 @@ declare module "mitt" {
declare namespace mitt {
type Handler = (event?: any) => void;
- type WildcardHandler = (type?: string, event?: any) => void;
+ type WildcardHandler = (type: string, event?: any) => void;
interface MittStatic {
(all?: {[key: string]: Array<Handler>}): Emitter;