mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-30 00:00:04 +08:00
Types update
This commit is contained in:
Vendored
+11
@@ -10,6 +10,12 @@ declare module 'simple-keyboard' {
|
|||||||
buttons: string;
|
buttons: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface KeyboardButtonAttributes {
|
||||||
|
attribute: string;
|
||||||
|
value: string;
|
||||||
|
buttons: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface KeyboardOptions {
|
interface KeyboardOptions {
|
||||||
/**
|
/**
|
||||||
* Modify the keyboard layout.
|
* Modify the keyboard layout.
|
||||||
@@ -41,6 +47,11 @@ declare module 'simple-keyboard' {
|
|||||||
*/
|
*/
|
||||||
buttonTheme?: KeyboardButtonTheme[];
|
buttonTheme?: KeyboardButtonTheme[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A prop to add your own attributes to one or several buttons.
|
||||||
|
*/
|
||||||
|
buttonAttributes?: KeyboardButtonAttributes[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs a `console.log` every time a key is pressed. Displays the buttons pressed and the current input.
|
* Runs a `console.log` every time a key is pressed. Displays the buttons pressed and the current input.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user