Action Typex
ActionTypes is a library which helps you generate action types in your flux architecture. It contains high-order functions and functions which get your arguments and return an object with required values which contain action types into your project.
Example
const {
initialConfig,
configureActionTypes,
createActionTypesGroup,
combineActionTypes,
createStaticActions
} = require('../');
const asyncThunkActionTypes = configureActionTypes(initialConfig);
createActionTypesGroup(asyncThunkActionTypes)('MAKE_PAYMENT', 'GET_TOKEN'),
createStaticActions('SET_VISANILITY', 'GET_NAME')
combineActionTypes(
createActionTypesGroup(asyncThunkActionTypes)('MAKE_PAYMENT', 'GET_TOKEN'),
createStaticActions('SET_VISANILITY', 'GET_NAME')
)