Skip to content

PlatformHotkeyEntry

ts
type PlatformHotkeyEntry<T> = [T] extends [string | ReadonlyArray<unknown>] ? T : T extends 
  | string
  | ReadonlyArray<unknown>
  | {
  key: unknown;
}
  | {
  code: unknown;
} ? T : OwnPlatformEntries<T>;

Defined in: hotkey.types.ts:529

The hotkeys resolvePlatformHotkey can return: every entry of a PlatformHotkeys object that isn't null, without its alternates, or the hotkey itself.

Type Parameters

T

T