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.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | 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'; | 
					
						
							|  |  |  | // import { reducer as messages } from './ducks/messages';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type StateType = { | 
					
						
							|  |  |  |   search: SearchStateType; | 
					
						
							|  |  |  |   messages: any; | 
					
						
							|  |  |  |   conversations: ConversationsStateType; | 
					
						
							|  |  |  |   user: UserStateType; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export const reducers = { | 
					
						
							|  |  |  |   search, | 
					
						
							|  |  |  |   // Temporary until ./ducks/messages is working
 | 
					
						
							|  |  |  |   // messages,
 | 
					
						
							|  |  |  |   messages: 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); |