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

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-keyboard", "name": "simple-keyboard",
"version": "2.24.2", "version": "2.24.3",
"description": "On-screen Javascript Virtual Keyboard", "description": "On-screen Javascript Virtual Keyboard",
"main": "build/index.js", "main": "build/index.js",
"types": "build/index.d.ts", "types": "build/index.d.ts",

View File

@ -172,6 +172,10 @@ declare module 'simple-keyboard' {
class Keyboard { class Keyboard {
constructor(selector: string, options: KeyboardOptions); constructor(selector: string, options: KeyboardOptions);
constructor(options: KeyboardOptions); constructor(options: KeyboardOptions);
/**
* Options
*/
options: KeyboardOptions; options: KeyboardOptions;
/** /**
@ -179,6 +183,11 @@ declare module 'simple-keyboard' {
*/ */
utilities?: any; utilities?: any;
/**
* caretPosition
*/
caretPosition?: number;
/** /**
* Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button. * 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). * @param {string} buttons List of buttons to select (separated by a space).