add return type for getButtonElement in type definition file

This commit is contained in:
Armno
2018-12-04 10:42:05 +07:00
parent 6ffd2e77ad
commit 4a9d485d5b
+1 -1
View File
@@ -177,7 +177,7 @@ declare module 'simple-keyboard' {
* Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.
* @param {string} button The button layout name to select
*/
getButtonElement(button: string): void;
getButtonElement(button: string): HTMLElement | HTMLElement[];
}
export default Keyboard;