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, applyMiddleware,
Middleware, Middleware,
Reducer, Reducer,
PreloadedState
} from 'redux'; } from 'redux';
import { ActionCreator, Dictionary } from '../types'; import { ActionCreator, Dictionary } from '../types';
function buildCreateStore<S>( function buildCreateStore<S>(
reducer: Reducer<S>, reducer: Reducer<S>,
initial: S, initial: PreloadedState<S>,
middleware: Middleware, middleware: Middleware,
actions: Dictionary<ActionCreator>, actions: Dictionary<ActionCreator>,
) { ) {