# tkit-actions

> tkit-actions

Latest version **3.0.0** (published 2019-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install tkit-actions
pnpm add tkit-actions
yarn add tkit-actions
bun add tkit-actions
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-07-09 |
| First published | 2019-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yangqianjun |

## Links

- npm: https://www.npmjs.com/package/tkit-actions
- npm.io page: https://npm.io/package/tkit-actions

## Dependencies (5)

- [redux](https://npm.io/package/redux.md) ^4.0.1
- [tslib](https://npm.io/package/tslib.md) ^1.9.3
- [reselect](https://npm.io/package/reselect.md) ^4.0.0
- [redux-actions](https://npm.io/package/redux-actions.md) ^2.6.4
- [typesafe-actions](https://npm.io/package/typesafe-actions.md) ^3.2.1

## Recent versions

- 3.0.0 (latest) — 2019-07-09

## README

---
name: actions
menu: 'redux'
---

# `npm i tkit-actions`

## Usage

```typescript
import { createAction, Action, handleActions, bindActionCreators, Dispatch } from 'tkit-actions';

const actions = {
  doSomething: () => createAction('DO', {})
};

const reducer = handleActions({
  DO: <S>(s: S, action: Action<{}>) => ({ ...s })
});

// bindActionCreators 通过 reselect 添加了 cache
function mapDispatchToProps(dispatch: Dispatch) {
  return {
    actions: bindActionCreators(actions, dispatch)
  };
}
```

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