From 303a0b893d483f8a140610a77f14cbc521649e14 Mon Sep 17 00:00:00 2001 From: lcluber Date: Fri, 9 Apr 2021 21:20:26 +0200 Subject: [PATCH] fix typing in declaration file --- CHANGELOG.md | 2 +- dist/ctrltab.d.ts | 2 +- package.json | 2 +- src/ctrltab.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 801c068..88e2f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 2.4.0 (April 09th 2021) +# 3.0.0 (April 09th 2021) - Shorter methods name (addCmd, setCmd ) - GroupName becomes an option property and default to "default" diff --git a/dist/ctrltab.d.ts b/dist/ctrltab.d.ts index 49e4173..381d890 100644 --- a/dist/ctrltab.d.ts +++ b/dist/ctrltab.d.ts @@ -91,7 +91,7 @@ export interface Options { groupName?: string; scope?: this; repeat?: boolean; - [key: string]: boolean | this | undefined; + [key: string]: string | boolean | this | undefined; } export interface Keys { [key: number]: Input; diff --git a/package.json b/package.json index efc786b..7c0cb06 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dwtechs/ctrltab", - "version": "2.4.0", + "version": "3.0.0", "description": "Shortcut key bindings library with multiple keystroke detection.", "keywords": [ "key binding", diff --git a/src/ctrltab.d.ts b/src/ctrltab.d.ts index 3daf1e2..13f0bbb 100644 --- a/src/ctrltab.d.ts +++ b/src/ctrltab.d.ts @@ -65,7 +65,7 @@ export interface Options { groupName?: string; scope?: this; repeat?: boolean; - [key: string]: boolean | this | undefined; + [key: string]: string | boolean | this | undefined; } export interface Keys { [key: number]: Input;