TanStack

AdapterWrapperHotkey

ts
type AdapterWrapperHotkey = RegisterableHotkey | AppHotkey | null | undefined;

Defined in: adapter.ts:256

What a hotkey function takes in a wrapper whose hotkey is a type parameter: any hotkey, or none. Keep it a named type. Written inline in a signature, TypeScript infers into the union member by member, which costs over a second of type checking for each call with a hotkey typed Hotkey.