TanStack
Hotkeys API Reference

isHotkeySequence

ts
function isHotkeySequence<T>(hotkey): hotkey is Extract<T, readonly unknown[]>;

Defined in: parse.ts:50

Whether a hotkey is a sequence. Use this instead of Array.isArray, which does not narrow readonly arrays.

Type Parameters

T

T extends RegisterableHotkey

Parameters

hotkey

T

Returns

hotkey is Extract<T, readonly unknown[]>