(text: string)
| 25 | } |
| 26 | |
| 27 | export function addTodoIfEmpty(text: string) { |
| 28 | return (dispatch: Dispatch, getState: () => any) => { |
| 29 | if (!getState().length) { |
| 30 | dispatch(addTodo(text)) |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | export function dispatchInMiddle(boundDispatchFn: () => void) { |
| 36 | return { |
no test coverage detected