mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-08-02 00:00:07 +08:00
Fix types
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user