1.1.4 • Published 6 years ago

redux-promise-middleware-define-constants v1.1.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

redux-promise-middleware-define-constants NPM version Build Status Dependency Status Coverage percentage

Helper for defining constants for use with the redux-promise-middleware package.

Installation

$ npm install --save redux-promise-middleware-define-constants

Usage

const defineRPMConstants = require('redux-promise-middleware-define-constants');

const GET_USERS = defineRPMConstants('GET_USERS');
console.log(GET_USERS.ACTION_TYPE); // GET_USERS
console.log(GET_USERS.PENDING); // GET_USERS_PENDING
console.log(GET_USERS.FULFILLED); // GET_USERS_FULFILLED
console.log(GET_USERS.REJECTED); // GET_USERS_REJECTED

//extra aliases

console.log(GET_USERS.TYPE); // GET_USERS
console.log(GET_USERS.ACTION); // GET_USERS

License

MIT © PC Thomatos

1.1.4

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago