mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-21 00:23:02 +08:00
add return type for getButtonElement in type definition file
This commit is contained in:
parent
6ffd2e77ad
commit
4a9d485d5b
2
src/lib/@types/index.d.ts
vendored
2
src/lib/@types/index.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user