From 331687de5b478b219f63f495c201765bfc8e3c76 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Sun, 11 Aug 2019 00:08:30 -0400 Subject: [PATCH] Added types for caretPosition --- package.json | 2 +- src/lib/@types/index.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e9d9483..29071af3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-keyboard", - "version": "2.24.2", + "version": "2.24.3", "description": "On-screen Javascript Virtual Keyboard", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/lib/@types/index.d.ts b/src/lib/@types/index.d.ts index df28f605..7ce3c41e 100644 --- a/src/lib/@types/index.d.ts +++ b/src/lib/@types/index.d.ts @@ -172,6 +172,10 @@ declare module 'simple-keyboard' { class Keyboard { constructor(selector: string, options: KeyboardOptions); constructor(options: KeyboardOptions); + + /** + * Options + */ options: KeyboardOptions; /** @@ -179,6 +183,11 @@ declare module 'simple-keyboard' { */ utilities?: any; + /** + * caretPosition + */ + caretPosition?: number; + /** * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button. * @param {string} buttons List of buttons to select (separated by a space).