fix: state is a PreloadedState<S>
This commit is contained in:
parent
fe34d01a41
commit
93bebc5acf
@ -3,12 +3,13 @@ import {
|
||||
applyMiddleware,
|
||||
Middleware,
|
||||
Reducer,
|
||||
PreloadedState
|
||||
} from 'redux';
|
||||
import { ActionCreator, Dictionary } from '../types';
|
||||
|
||||
function buildCreateStore<S>(
|
||||
reducer: Reducer<S>,
|
||||
initial: S,
|
||||
initial: PreloadedState<S>,
|
||||
middleware: Middleware,
|
||||
actions: Dictionary<ActionCreator>,
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user