Skip to content

requireAppHotkeysStore

ts
function requireAppHotkeysStore(store, message): AppHotkeysStore<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>;

Defined in: adapter.ts:565

The app hotkeys store, typed by Register, or throws when there is none. message says which API needs it and how to provide one.

Parameters

store

| AppHotkeysStore<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>> | null | undefined

message

string

Returns

AppHotkeysStore<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>