Make ts happier

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-03-18 17:03:00 +00:00
parent 9cda84c675
commit 36cedc58bb

View file

@ -229,12 +229,12 @@ interface IModal {
finished: Promise<any[]>; finished: Promise<any[]>;
} }
const modifierIcon: Record<Modifiers, string> = { const modifierIcon: Record<string, string> = {
[Modifiers.COMMAND]: "⌘", [Modifiers.COMMAND]: "⌘",
[Modifiers.OPTION]: "⌥", [Modifiers.OPTION]: "⌥",
}; };
const alternateKeyName: Record<string, string> = { // TS: fix this once Key is an enum const alternateKeyName: Record<string, string> = {
[Key.PAGE_UP]: _td("Page Up"), [Key.PAGE_UP]: _td("Page Up"),
[Key.PAGE_DOWN]: _td("Page Down"), [Key.PAGE_DOWN]: _td("Page Down"),
[Key.ESCAPE]: _td("Esc"), [Key.ESCAPE]: _td("Esc"),
@ -243,7 +243,7 @@ const alternateKeyName: Record<string, string> = { // TS: fix this once Key is a
[Key.HOME]: _td("Home"), [Key.HOME]: _td("Home"),
[Key.END]: _td("End"), [Key.END]: _td("End"),
}; };
const keyIcon: Record<string, string> = { // TS: fix this once Key is an enum const keyIcon: Record<string, string> = {
[Key.ARROW_UP]: "↑", [Key.ARROW_UP]: "↑",
[Key.ARROW_DOWN]: "↓", [Key.ARROW_DOWN]: "↓",
[Key.ARROW_LEFT]: "←", [Key.ARROW_LEFT]: "←",