From dfc87fffb7ba49a1affdd1a17027dbf04a38b416 Mon Sep 17 00:00:00 2001 From: Matthew Lilley Date: Tue, 4 Dec 2018 01:30:12 +0000 Subject: [PATCH 1/2] Add missing serializeState and deserializeState options --- types/next-redux-wrapper/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/next-redux-wrapper/index.d.ts b/types/next-redux-wrapper/index.d.ts index 16af858743..835a9762ca 100644 --- a/types/next-redux-wrapper/index.d.ts +++ b/types/next-redux-wrapper/index.d.ts @@ -19,6 +19,8 @@ declare namespace nextReduxWrapper { interface Options { storeKey?: string; debug?: boolean; + serializeState: any; + deserializeState: any; } interface StoreCreatorOptions extends Options { From 2b5740f7d28b9acf379c75e79ae857dae1534e5d Mon Sep 17 00:00:00 2001 From: Matthew Lilley Date: Fri, 7 Dec 2018 02:05:09 +0000 Subject: [PATCH 2/2] Make serializeState and deserializeState options, optional. --- types/next-redux-wrapper/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/next-redux-wrapper/index.d.ts b/types/next-redux-wrapper/index.d.ts index 835a9762ca..84d71b46c1 100644 --- a/types/next-redux-wrapper/index.d.ts +++ b/types/next-redux-wrapper/index.d.ts @@ -19,8 +19,8 @@ declare namespace nextReduxWrapper { interface Options { storeKey?: string; debug?: boolean; - serializeState: any; - deserializeState: any; + serializeState?: any; + deserializeState?: any; } interface StoreCreatorOptions extends Options {