mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 16:52:59 +08:00
Added types for caretPosition
This commit is contained in:
parent
1ac8bf00ef
commit
331687de5b
@ -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",
|
||||||
|
9
src/lib/@types/index.d.ts
vendored
9
src/lib/@types/index.d.ts
vendored
@ -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).
|
||||||
|
Loading…
Reference in New Issue
Block a user