Skip to content

Commit a450fbd

Browse files
cellogtimdorr
authored andcommitted
fix combineReducers overload exports, and import of Reducer type (#3554)
1 parent 6d96545 commit a450fbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/combineReducers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Reducer } from '..'
1+
import { Reducer } from './types/reducers'
22
import { AnyAction, Action } from './types/actions'
33
import ActionTypes from './utils/actionTypes'
44
import warning from './utils/warning'
@@ -124,13 +124,13 @@ function assertReducerShape(reducers: ReducersMapObject) {
124124
* @returns A reducer function that invokes every reducer inside the passed
125125
* object, and builds a state object with the same shape.
126126
*/
127-
export function combineReducers<S>(
127+
export default function combineReducers<S>(
128128
reducers: ReducersMapObject<S, any>
129129
): Reducer<CombinedState<S>>
130-
export function combineReducers<S, A extends Action = AnyAction>(
130+
export default function combineReducers<S, A extends Action = AnyAction>(
131131
reducers: ReducersMapObject<S, A>
132132
): Reducer<CombinedState<S>, A>
133-
export function combineReducers<M extends ReducersMapObject<any, any>>(
133+
export default function combineReducers<M extends ReducersMapObject<any, any>>(
134134
reducers: M
135135
): Reducer<
136136
CombinedState<StateFromReducersMapObject<M>>,

0 commit comments

Comments
 (0)