mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 16:07:45 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			567 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			567 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 markTodo(id) {
 | |
|   return {
 | |
|     type: types.MARK_TODO,
 | |
|     id,
 | |
|   };
 | |
| }
 | |
| 
 | |
| export function markAll() {
 | |
|   return {
 | |
|     type: types.MARK_ALL,
 | |
|   };
 | |
| }
 | |
| 
 | |
| export function clearMarked() {
 | |
|   return {
 | |
|     type: types.CLEAR_MARKED,
 | |
|   };
 | |
| }
 |