This package has been deprecated

Author message:

WARNING: This project has been renamed to create-redux-action-types. Install using create-redux-action-types instead.

create-redux-actions-types
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Create Redux Action Types

Create redux action types with normal javascript object.

Install

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

Usage

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
);
 
 
file:some.ts
import actionTypes from "./actionTypes"
 
actionTypes.auth.login // "app-auth-login"
actionTypes.some.foo.bar // "app-some-foo-bar"

Package Sidebar

Install

npm i create-redux-actions-types

Weekly Downloads

11

Version

0.0.1

License

MIT

Unpacked Size

57.1 kB

Total Files

11

Last publish

Collaborators

  • qinzisong