You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			26 lines
		
	
	
		
			634 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			634 B
		
	
	
	
		
			TypeScript
		
	
| 
								 
											7 years ago
										 
									 | 
							
								import { combineReducers } from 'redux';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import { reducer as search, SearchStateType } from './ducks/search';
							 | 
						||
| 
								 | 
							
								import {
							 | 
						||
| 
								 | 
							
								  ConversationsStateType,
							 | 
						||
| 
								 | 
							
								  reducer as conversations,
							 | 
						||
| 
								 | 
							
								} from './ducks/conversations';
							 | 
						||
| 
								 | 
							
								import { reducer as user, UserStateType } from './ducks/user';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export type StateType = {
							 | 
						||
| 
								 | 
							
								  search: SearchStateType;
							 | 
						||
| 
								 | 
							
								  conversations: ConversationsStateType;
							 | 
						||
| 
								 | 
							
								  user: UserStateType;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export const reducers = {
							 | 
						||
| 
								 | 
							
								  search,
							 | 
						||
| 
								 | 
							
								  conversations,
							 | 
						||
| 
								 | 
							
								  user,
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Making this work would require that our reducer signature supported AnyAction, not
							 | 
						||
| 
								 | 
							
								//   our restricted actions
							 | 
						||
| 
								 | 
							
								// @ts-ignore
							 | 
						||
| 
								 | 
							
								export const reducer = combineReducers(reducers);
							 |