Make ts happier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9cda84c675
commit
36cedc58bb
1 changed files with 15 additions and 15 deletions
|
@ -229,12 +229,12 @@ interface IModal {
|
|||
finished: Promise<any[]>;
|
||||
}
|
||||
|
||||
const modifierIcon: Record<Modifiers, string> = {
|
||||
const modifierIcon: Record<string, string> = {
|
||||
[Modifiers.COMMAND]: "⌘",
|
||||
[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_DOWN]: _td("Page Down"),
|
||||
[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.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_DOWN]: "↓",
|
||||
[Key.ARROW_LEFT]: "←",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue