diff --git a/.gitignore b/.gitignore index 9aeb7a5..840ed1e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ /tables/* /Properties/ /.idea/ -/wwwroot/scripts/js/*.js -/wwwroot/scripts/js/*.map +/wwwroot/scripts/js/* diff --git a/wwwroot/scripts/ts/keyboards.ts b/wwwroot/scripts/ts/keyboards.ts index 3c13858..c043774 100644 --- a/wwwroot/scripts/ts/keyboards.ts +++ b/wwwroot/scripts/ts/keyboards.ts @@ -1,6 +1,7 @@ type KeyboardRowName = `row${number}${"" | "_"}${string}`; +type KeyboardRow = Partial> interface VirtualKeyboard { - [layoutName: string]: Partial>; + [layoutName: string]: KeyboardRow; } let showVirtualNumpad = (heading: string, maxlength = 4, isPassword: boolean, allowDecimals = true, allowClose = true, submitFunction: Function) => { @@ -222,7 +223,9 @@ let showVirtualNumpad = (heading: string, maxlength = 4, isPassword: boolean, al and translators making their own language packs */ index = index + 1; - let currentRow = layoutToLoad[`row${index}${modifier}`] + + // @ts-ignore + let currentRow : string[] = layoutToLoad[`row${index}${modifier}`] $(row).children('a').each((keyIndex, button) => { let key = $(button);