From d3c0d4830b2fead833288ea608513a354253a547 Mon Sep 17 00:00:00 2001 From: James Chao Date: Fri, 27 Mar 2020 22:18:41 +0800 Subject: [PATCH] Allow boolean return value from KeyHandler (#164) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0c62740..3ccc447 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,7 +7,7 @@ export interface HotkeysEvent { } export interface KeyHandler { - (keyboardEvent: KeyboardEvent, hotkeysEvent: HotkeysEvent): void + (keyboardEvent: KeyboardEvent, hotkeysEvent: HotkeysEvent): void | boolean } type Options = {