Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference
Hotkeys API Reference

isHotkeySequence

ts
function isHotkeySequence<T>(hotkey): hotkey is Extract<T, readonly unknown[]>;
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[]>