Skip to content

Commit fbe233d

Browse files
authored
[ts] Make type optional in WildcardHandler. Fixes #96.
1 parent 2aba216 commit fbe233d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitt.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare module "mitt" {
66

77
declare namespace mitt {
88
type Handler = (event?: any) => void;
9-
type WildcardHandler = (type?: string, event?: any) => void;
9+
type WildcardHandler = (type: string, event?: any) => void;
1010

1111
interface MittStatic {
1212
(all?: {[key: string]: Array<Handler>}): Emitter;

0 commit comments

Comments
 (0)