fix: state is a PreloadedState<S>
This commit is contained in:
parent
fe34d01a41
commit
93bebc5acf
@ -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>,
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user