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) => {
+3 -1
View File
@@ -1,4 +1,6 @@
export const getDefaultLayout = () => {
import { KeyboardLayoutObject } from "../interfaces";
export const getDefaultLayout = (): KeyboardLayoutObject => {
return {
default: [
"` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",