Skip to content

Commit 3fbc63c

Browse files
authored
Add explicit type annotation
1 parent 8b9bf9c commit 3fbc63c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hotkey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function localizeMod(hotkey: string, platform?: string | undefined): string {
9696
return hotkey.replace('Mod', localModifier)
9797
}
9898

99-
const orderedModifiers = {
99+
const orderedModifiers: Partial<Record<string, number>> = {
100100
Control: 0,
101101
Alt: 1,
102102
Meta: 2,

0 commit comments

Comments
 (0)