mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-25 05:01:03 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			527 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			527 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import * as types from '../constants/ActionTypes';
 | |
| 
 | |
| export function addTodo(text) {
 | |
|   return { type: types.ADD_TODO, text };
 | |
| }
 | |
| 
 | |
| export function deleteTodo(id) {
 | |
|   return { type: types.DELETE_TODO, id };
 | |
| }
 | |
| 
 | |
| export function editTodo(id, text) {
 | |
|   return { type: types.EDIT_TODO, id, text };
 | |
| }
 | |
| 
 | |
| export function completeTodo(id) {
 | |
|   return { type: types.COMPLETE_TODO, id };
 | |
| }
 | |
| 
 | |
| export function completeAll() {
 | |
|   return { type: types.COMPLETE_ALL };
 | |
| }
 | |
| 
 | |
| export function clearCompleted() {
 | |
|   return { type: types.CLEAR_COMPLETED };
 | |
| }
 |