Added types for caretPosition

This commit is contained in:
Francisco Hodge
2019-08-11 00:08:30 -04:00
parent 1ac8bf00ef
commit 331687de5b
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -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).