From 93bebc5acf193752aa6b4857507f05d52b1b7665 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 31 Jan 2020 17:54:16 -0500 Subject: [PATCH] fix: state is a PreloadedState --- src/buildCreateStore/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buildCreateStore/index.ts b/src/buildCreateStore/index.ts index 650c448..981fac3 100644 --- a/src/buildCreateStore/index.ts +++ b/src/buildCreateStore/index.ts @@ -3,12 +3,13 @@ import { applyMiddleware, Middleware, Reducer, + PreloadedState } from 'redux'; import { ActionCreator, Dictionary } from '../types'; function buildCreateStore( reducer: Reducer, - initial: S, + initial: PreloadedState, middleware: Middleware, actions: Dictionary, ) {