FIX ROOT STATE TYPE!!!!!
This commit is contained in:
parent
8da7b8fe7a
commit
e47e33e21c
|
@ -134,7 +134,6 @@ export const StateRecord = ImmutableRecord(
|
|||
}, {}),
|
||||
);
|
||||
|
||||
// @ts-ignore: This type is fine but TS thinks it's wrong
|
||||
const appReducer = combineReducers(reducers, StateRecord);
|
||||
|
||||
// Clear the state (mostly) when the user logs out
|
||||
|
|
|
@ -13,5 +13,5 @@ declare module 'redux-immutable' {
|
|||
export function combineReducers<S, A extends Action, T>(reducers: ReducersMapObject<S, A>, getDefaultState?: () => Collection.Keyed<T, S>): Reducer<S, A>;
|
||||
export function combineReducers<S, A extends Action>(reducers: ReducersMapObject<S, A>, getDefaultState?: () => Collection.Indexed<S>): Reducer<S, A>;
|
||||
export function combineReducers<S>(reducers: ReducersMapObject<S, any>, getDefaultState?: () => Collection.Indexed<S>): Reducer<S>;
|
||||
export function combineReducers<S, T extends object>(reducers: ReducersMapObject<S, any>, getDefaultState?: Record.Factory<T>): Reducer<S>;
|
||||
export function combineReducers<S extends object, T extends object>(reducers: ReducersMapObject<S, any>, getDefaultState?: Record.Factory<T>): Reducer<ReturnType<Record.Factory<S>>>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue