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.
type
1 parent 2aba216 commit fbe233dCopy full SHA for fbe233d
mitt.d.ts
@@ -6,7 +6,7 @@ declare module "mitt" {
6
7
declare namespace mitt {
8
type Handler = (event?: any) => void;
9
- type WildcardHandler = (type?: string, event?: any) => void;
+ type WildcardHandler = (type: string, event?: any) => void;
10
11
interface MittStatic {
12
(all?: {[key: string]: Array<Handler>}): Emitter;
0 commit comments