import { ITodoAction } from './reducer' ; export function addItem ( text ) { return { type : 'ADD' , text } ; } export function removeItem ( itemId ) { return { type : 'REMOVE' , itemId } ; } export function updateItemText ( itemId , text ) { return { type : 'UPDATE_ITEM_TEXT' , itemId , text } ; } export function updateItemCompletion ( itemId , completed ) { return { type : 'UPDATE_ITEM_COMPLETION' , itemId , completed } ; }