Skip to content

Commit

Permalink
fix combineReducers overload exports, and import of Reducer type (#3554)
Browse files Browse the repository at this point in the history
  • Loading branch information
cellog authored and timdorr committed Sep 2, 2019
1 parent 6d96545 commit a450fbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/combineReducers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reducer } from '..'
import { Reducer } from './types/reducers'
import { AnyAction, Action } from './types/actions'
import ActionTypes from './utils/actionTypes'
import warning from './utils/warning'
Expand Down Expand Up @@ -124,13 +124,13 @@ function assertReducerShape(reducers: ReducersMapObject) {
* @returns A reducer function that invokes every reducer inside the passed
* object, and builds a state object with the same shape.
*/
export function combineReducers<S>(
export default function combineReducers<S>(
reducers: ReducersMapObject<S, any>
): Reducer<CombinedState<S>>
export function combineReducers<S, A extends Action = AnyAction>(
export default function combineReducers<S, A extends Action = AnyAction>(
reducers: ReducersMapObject<S, A>
): Reducer<CombinedState<S>, A>
export function combineReducers<M extends ReducersMapObject<any, any>>(
export default function combineReducers<M extends ReducersMapObject<any, any>>(
reducers: M
): Reducer<
CombinedState<StateFromReducersMapObject<M>>,
Expand Down

0 comments on commit a450fbd

Please sign in to comment.