mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #62891 [mousetrap] Return type of callback should be void by @rhysd
This commit is contained in:
4
types/mousetrap/index.d.ts
vendored
4
types/mousetrap/index.d.ts
vendored
@@ -18,7 +18,7 @@ declare namespace Mousetrap {
|
||||
stopCallback: (e: ExtendedKeyboardEvent, element: Element, combo: string) => boolean;
|
||||
bind(
|
||||
keys: string | string[],
|
||||
callback: (e: ExtendedKeyboardEvent, combo: string) => any,
|
||||
callback: (e: ExtendedKeyboardEvent, combo: string) => void,
|
||||
action?: string,
|
||||
): MousetrapInstance;
|
||||
unbind(keys: string | string[], action?: string): MousetrapInstance;
|
||||
@@ -30,7 +30,7 @@ declare namespace Mousetrap {
|
||||
stopCallback: (e: ExtendedKeyboardEvent, element: Element, combo: string) => boolean;
|
||||
bind(
|
||||
keys: string | string[],
|
||||
callback: (e: ExtendedKeyboardEvent, combo: string) => any,
|
||||
callback: (e: ExtendedKeyboardEvent, combo: string) => void,
|
||||
action?: string,
|
||||
): this;
|
||||
unbind(keys: string | string[], action?: string): this;
|
||||
|
||||
Reference in New Issue
Block a user