fix type
This commit is contained in:
parent
92ec433539
commit
ce3d829041
@ -28,7 +28,7 @@ export function loadShortcuts() {
|
||||
}
|
||||
}
|
||||
|
||||
export function saveShortcut(shortcut: keyof SettingsData["shortcuts"], key: string | null) {
|
||||
export function saveShortcut(shortcut: keyof SettingsData["shortcuts"], key: string) {
|
||||
const shortcuts = settings.get("shortcuts") || <SettingsData["shortcuts"]>{};
|
||||
shortcuts[shortcut] = key;
|
||||
settings.set("shortcuts", shortcuts);
|
||||
|
Loading…
Reference in New Issue
Block a user