# create-redux-actions-types

> Create redux action types with normal javascript object

Latest version **0.0.1** (published 2018-12-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install create-redux-actions-types
pnpm add create-redux-actions-types
yarn add create-redux-actions-types
bun add create-redux-actions-types
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-12-04 |
| First published | 2018-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 55.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | qzsiniong |
| Maintainers | qinzisong |
| Keywords | react, redux, redux-actions, types |

## Links

- npm: https://www.npmjs.com/package/create-redux-actions-types
- Repository: https://github.com/qzsiniong/create-redux-action-types
- Issues: https://github.com/qzsiniong/create-redux-action-types/issues
- npm.io page: https://npm.io/package/create-redux-actions-types

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2018-12-04

## README

# Create Redux Action Types

Create redux action types with normal javascript object.


## Install

```bash
npm install --save create-redux-action-types
or 
yarn add create-redux-action-types
```

## Usage

```ts
# file:actionTypes.ts
import createReduxActionTypes from "create-redux-action-types"

export default createReduxActionTypes(
  {
    auth: {
      login: "",
      logout: "",
    },
    some: {
      foo: {
        bar: ""
      }
    }
  },
  "-", // delimiter, default "/"
  "app" // namespace, default undefined
);


```

```ts
# file:some.ts
import actionTypes from "./actionTypes"

actionTypes.auth.login // "app-auth-login"
actionTypes.some.foo.bar // "app-some-foo-bar"
```

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