Fix types

This commit is contained in:
Francisco Hodge
2024-07-15 12:40:21 -04:00
parent 9c24c1cb01
commit 5464fbc77e
6 changed files with 14 additions and 9 deletions
+5 -1
View File
@@ -13,6 +13,10 @@ import {
} from "../interfaces";
import CandidateBox from "./CandidateBox";
declare global {
interface Window { SimpleKeyboardInstances: any; }
}
/**
* Root class for simple-keyboard.
* This class:
@@ -821,7 +825,7 @@ class SimpleKeyboard {
* Get all simple-keyboard inputs
*/
getAllInputs(): KeyboardInput {
const output = {};
const output = {} as KeyboardInput;
const inputNames = Object.keys(this.input);
inputNames.forEach((inputName) => {