# AppHotkeyDeclaration

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

Defined in: [app-hotkeys.ts:137](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L137)

The shape of a declaration before `defineAppHotkeys` checks its hotkey and
options. `DefinedAppHotkeys` takes a map of these.

It names no hotkey type on purpose. While TypeScript infers the
declarations, it checks every literal in the call against contextual types
built from this shape, and each check walks any union it finds. With the
chord union (thousands of members) here, each keystroke in a large
declaration took seconds in editors. `ValidatedAppHotkeyInputs` checks each
hotkey once the declarations are inferred.

## Properties

### hotkey

```ts
hotkey: string | readonly string[] | UncheckedHotkey | null;
```

Defined in: [app-hotkeys.ts:139](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L139)

Default hotkey: a chord, a sequence, or `null` for an action without a default.

***

### meta?

```ts
optional meta?: HotkeyMeta;
```

Defined in: [app-hotkeys.ts:141](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L141)

Display metadata for cheat sheets and settings screens.

***

### options?

```ts
optional options?: AppHotkeyOptions;
```

Defined in: [app-hotkeys.ts:153](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L153)

Options that describe the hotkey itself. Chord defaults accept
`requireReset`; sequence defaults accept `timeout`.

***

### scope?

```ts
optional scope?: string;
```

Defined in: [app-hotkeys.ts:148](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L148)

Scope this hotkey fires in, such as `'editor'`. Overrides the scope of the
provider it registers under. App hotkeys in different scopes may share a
hotkey; one in the `'global'` scope conflicts with any app hotkey that
shares its hotkey.
