TanStack
Hotkeys API Reference

HotkeyOptionsFor

ts
type HotkeyOptionsFor<T> = [T] extends [never] ? HotkeyChordOptions & HotkeySequenceOptions : T extends readonly [RegisterableHotkeyChord] ? HotkeyChordOptions : T extends HotkeySequence ? HotkeySequenceOptions : HotkeyChordOptions;

Defined in: hotkey-manager.ts:88

The options type for a hotkey: chord options for chords (including one-step tuples), sequence options for sequences.

Type Parameters

T

T extends RegisterableHotkey