# Register

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

Defined in: [register.ts:23](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/register.ts#L23)

Register app-wide types. Augment it from your framework package, or from
`@tanstack/hotkeys` itself.

- `appHotkeys` types `useAppHotkeys()` and `CustomHotkeys`.
- `keys` sets the printable keys that hotkey strings accept, from the
  keyboard layouts your app targets. Without it, they are the US QWERTY
  keys. A-Z, 0-9, named keys such as `Escape`, and physical codes such as
  `[KeyS]` are always accepted.

## Example

```ts
import type { GermanKeys } from '@tanstack/react-hotkeys'

declare module '@tanstack/react-hotkeys' {
  interface Register {
    appHotkeys: typeof appHotkeys
    keys: GermanKeys
  }
}
```
