mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
Mousetrap: Type fix
This commit is contained in:
Vendored
+1
-1
@@ -8,7 +8,7 @@ interface ExtendedKeyboardEvent extends KeyboardEvent {
|
||||
}
|
||||
|
||||
interface MousetrapStatic {
|
||||
stopCallback: (e: KeyboardEvent, element: Element, combo: string) => bool;
|
||||
stopCallback: (e: ExtendedKeyboardEvent, element: Element, combo: string) => bool;
|
||||
|
||||
bind(keys: string, callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
|
||||
bind(keyArray: string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
|
||||
|
||||
Reference in New Issue
Block a user