Canonical Reducer Composition pattern component validator.
import {
validateReducer,
validateAction,
validateActionName
} from 'canonical';
/**
* @throws Error if input reducerDefinition is not compliant with the spec.
*/
validateReducer(reducerDefinition);
/**
* @throws Error if action is not compliant with the spec.
*/
validateAction(action);
/**
* @throws Error if action name is not compliant with the spec.
*/
validateActionName(actionName);