TanStack
Hotkeys API Reference

HotkeyCallbackContextFor

ts
type HotkeyCallbackContextFor<T> = [T] extends [never] ? HotkeyCallbackContext : T extends readonly [RegisterableHotkeyChord] ? HotkeyChordCallbackContext : T extends RegisterableHotkeySequence ? HotkeySequenceCallbackContext : HotkeyChordCallbackContext;

Defined in: hotkey.types.ts:262

The callback context for a hotkey: chord context for chords (including one-step tuples), sequence context for sequences, and either when the kind is not known statically.

Type Parameters

T

T extends RegisterableHotkey