1.0.0 • Published 6 years ago
redux-typo v1.0.0
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
1.0.0
6 years ago