The following action works perfectly:
function actionCreator(count: number): ActionType {
return {
type: types.ActionType,
count
};
}
but if rewritten like this:
const actionCreator = (count: number): ActionType => ({
type: types.ActionType,
count
});
it produces junk in the devtools dispatcher list. The action that appears looks like this:
actionCreator({, type:, _types2.default.ActionType, stories, })