Updated types

This commit is contained in:
Francisco Hodge 2019-03-06 19:28:24 -05:00
parent ed944d1204
commit c4005e7409

View File

@ -111,6 +111,16 @@ declare module 'simple-keyboard' {
*/ */
inputPattern?: any; inputPattern?: any;
/**
* Instructs simple-keyboard to use touch events instead of click events.
*/
useTouchEvents?: boolean;
/**
* Enable useTouchEvents automatically when touch device is detected.
*/
autoUseTouchEvents?: boolean;
/** /**
* Executes the callback function on key press. Returns button layout name (i.e.: "{shift}"). * Executes the callback function on key press. Returns button layout name (i.e.: "{shift}").
*/ */
@ -121,6 +131,16 @@ declare module 'simple-keyboard' {
*/ */
onChange?: (input: string) => any; onChange?: (input: string) => any;
/**
* Executes the callback function before the first simple-keyboard render.
*/
beforeFirstRender?: () => void;
/**
* Executes the callback function before a simple-keyboard render.
*/
beforeRender?: () => void;
/** /**
* Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts). * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
*/ */