mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-04-03 05:11:57 +08:00
Updated types
This commit is contained in:
parent
737d1fe2f2
commit
f9d594b8a0
@ -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",
|
||||
|
11
src/lib/@types/index.d.ts
vendored
11
src/lib/@types/index.d.ts
vendored
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user