diff --git a/CHANGELOG.md b/CHANGELOG.md index 88e2f1a..b486532 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 3.0.1 (May 23th 2021) + +- Fix scope option typing for TypeScript users. + # 3.0.0 (April 09th 2021) - Shorter methods name (addCmd, setCmd ) diff --git a/dist/ctrltab.d.ts b/dist/ctrltab.d.ts index 381d890..5a18dec 100644 --- a/dist/ctrltab.d.ts +++ b/dist/ctrltab.d.ts @@ -1,4 +1,4 @@ -/* +/* MIT License Copyright (c) 2015 DWTechs @@ -20,10 +20,10 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -https://github.com/DWTechs/CtrlTab.js -*/ - + +https://github.com/DWTechs/CtrlTab.js +*/ + export declare class Command { name: string; @@ -89,7 +89,7 @@ export interface CtrlKeys { export interface Options { preventDefault?: boolean; groupName?: string; - scope?: this; + scope?: any; repeat?: boolean; [key: string]: string | boolean | this | undefined; } diff --git a/package.json b/package.json index 7c0cb06..9ec0c37 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dwtechs/ctrltab", - "version": "3.0.0", + "version": "3.0.1", "description": "Shortcut key bindings library with multiple keystroke detection.", "keywords": [ "key binding", diff --git a/src/interfaces.ts b/src/interfaces.ts index 2d31f9c..4962bbf 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -10,7 +10,7 @@ export interface CtrlKeys { export interface Options { preventDefault?: boolean; groupName?: string; - scope?: this; + scope?: any; repeat?: boolean; [key: string]: string | boolean | this | undefined; }