mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-05-19 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) => {
|
||||
|
||||
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user