1.0.0 • Published 6 years ago

redux-typo v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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