Skip to content

DefinedAppHotkeys

ts
type DefinedAppHotkeys<T> = { readonly [K in keyof T & string]: AppHotkey<K, DeclaredDefaultKind<T[K]>> };

Defined in: app-hotkeys.ts:274

The app hotkeys returned by defineAppHotkeys for a declaration object. An entry that is already an app hotkey, spread in from another defineAppHotkeys call, keeps the kind of its default. Spread the results of defineAppHotkeys, not app hotkeys read from a store: their hotkey is the user's custom hotkey, which would become the new default.

Type Parameters

T

T extends Record<string, AppHotkeyDeclaration>