# @types/redux-shortcuts

> TypeScript definitions for redux-shortcuts

Latest version **0.0.7** (published 2025-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/redux-shortcuts
pnpm add @types/redux-shortcuts
yarn add @types/redux-shortcuts
bun add @types/redux-shortcuts
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2025-09-24 |
| First published | 2018-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/redux-shortcuts
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-shortcuts
- npm.io page: https://npm.io/package/@types/redux-shortcuts

## Dependencies (2)

- [redux](https://npm.io/package/redux.md) ^3.6.0
- [@types/mousetrap](https://npm.io/package/@types/mousetrap.md) *

## Recent versions

- 0.0.7 (latest) — 2025-09-24
- 0.0.6 (ts5.1) — 2023-11-07
- 0.0.3 (ts3.5) — 2021-04-17
- 0.0.2 (ts3.3) — 2020-09-23
- 0.0.1 (ts2.5) — 2019-03-14
- 0.0.5 — 2023-10-18
- 0.0.4 — 2023-09-27
- 0.0.0 — 2018-05-08

## README

# Installation
> `npm install --save @types/redux-shortcuts`

# Summary
This package contains type definitions for redux-shortcuts (https://github.com/nak2k/node-redux-shortcuts).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-shortcuts.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-shortcuts/index.d.ts)
````ts
import { Action, ActionCreator, Dispatch } from "redux";
import Mousetrap = require("mousetrap");

export { Mousetrap };
export const mousetrap: Mousetrap.MousetrapInstance;

export function bindShortcut(
    keys: KeyBindings,
    actionCreator: ActionBindings,
    preventDefault?: boolean,
): (dispatch: Dispatch<any>) => void;

export function bindShortcuts(
    ...shortcut: ShortcutDefinition[]
): (dispatch: Dispatch<any>) => void;

export type KeyBindings = string | string[];

export type ActionBindings =
    | ActionCreator<Action>
    | Array<ActionCreator<Action>>;

export type ShortcutDefinition =
    | BasicShortcutDefinition
    | ShortcutDefinitionWithPreventDefault;

export type BasicShortcutDefinition = [KeyBindings, ActionBindings];

export type ShortcutDefinitionWithPreventDefault = [
    KeyBindings,
    ActionBindings,
    boolean,
];

````

### Additional Details
 * Last updated: Wed, 24 Sep 2025 18:02:26 GMT
 * Dependencies: [@types/mousetrap](https://npmjs.com/package/@types/mousetrap), [redux](https://npmjs.com/package/redux)

# Credits
These definitions were written by [Tim Stirrat](https://github.com/tstirrat).

---
_Source: https://npm.io/package/@types/redux-shortcuts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
