fix: state is a PreloadedState<S>

typescript
Yanick Champoux 2020-01-31 17:54:16 -05:00
parent fe34d01a41
commit 93bebc5acf
1 changed files with 2 additions and 1 deletions

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