From 9334891313a8387b545087713ca8f0681b2c69e8 Mon Sep 17 00:00:00 2001 From: xiejiahe Date: Tue, 19 Jan 2021 19:35:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20unbind=20=E8=A7=A3?= =?UTF-8?q?=E7=BB=91=E6=89=80=E6=9C=89=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hotkeys.unbind() 抛出异常。 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 3ccc4472..794a3633 100644 --- a/index.d.ts +++ b/index.d.ts @@ -37,7 +37,7 @@ interface Hotkeys { noConflict(): void - unbind(key: string): void + unbind(key?: string): void unbind(key: string, scopeName: string): void unbind(key: string, scopeName: string, method: KeyHandler): void unbind(key: string, method: KeyHandler): void