redux-typo
v1.0.0
Published
Redux middleware for catching typos in dispatched action types.
Downloads
2
Readme
Typo Check
npm install --save redux-typo
Motivation
Redux Typo is a simple Redux middleware for catching typos in dispatched action types:
import typo from 'redux-typo';
const actionTypes = [ 'ADD_TODO', 'REMOVE_TODO' ];
let store = createStore( combineReducers({
todos: todosReducer
}), applyMiddleware( typo(actionTypes) ));
store.dispatch({ type:'RMOVE_TODO' }); // throws error