fix: state is a PreloadedState<S>

This commit is contained in:
Yanick Champoux 2020-01-31 17:54:16 -05:00
parent fe34d01a41
commit 93bebc5acf

View File

@ -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>,
) {