Updated types

This commit is contained in:
Francisco Hodge 2019-04-09 20:27:19 -04:00
parent 737d1fe2f2
commit f9d594b8a0
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -2,6 +2,7 @@ declare module 'simple-keyboard' {
interface KeyboardLayoutObject {
default: string[];
shift?: string[];
[key: string]: string[];
}
interface KeyboardButtonTheme {
@ -10,11 +11,6 @@ declare module 'simple-keyboard' {
}
interface KeyboardOptions {
/**
* Utilities
*/
utilities?: any;
/**
* Modify the keyboard layout.
*/
@ -172,6 +168,11 @@ declare module 'simple-keyboard' {
constructor(options: KeyboardOptions);
options: KeyboardOptions;
/**
* Utilities
*/
utilities?: any;
/**
* 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).