From 020aa04894b08256b9fb47a2c41671eca0bcbcb9 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Sun, 11 Aug 2019 20:24:12 -0400 Subject: [PATCH] Types update --- src/lib/@types/index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/@types/index.d.ts b/src/lib/@types/index.d.ts index 7ce3c41e..69cacb0c 100644 --- a/src/lib/@types/index.d.ts +++ b/src/lib/@types/index.d.ts @@ -10,6 +10,12 @@ declare module 'simple-keyboard' { buttons: string; } + interface KeyboardButtonAttributes { + attribute: string; + value: string; + buttons: string; + } + interface KeyboardOptions { /** * Modify the keyboard layout. @@ -41,6 +47,11 @@ declare module 'simple-keyboard' { */ 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. */