From 79708b37ae0fe10a76192ead1ef3ed5eef67cfa5 Mon Sep 17 00:00:00 2001 From: kazukinagata Date: Tue, 28 Jul 2020 11:09:01 +0900 Subject: [PATCH 1/2] Change state type as unknown --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 4d987a6..0b908ce 100644 --- a/src/types.ts +++ b/src/types.ts @@ -207,7 +207,7 @@ export interface SingleLayerStringMap { export interface GenerateRequireSignInWrapperConfig { readonly redirectPathIfNotSignedIn: string - readonly mapStateToProps: (state: object) => {hasVerificationBeenAttempted: boolean, isSignedIn: boolean} + readonly mapStateToProps: (state: unknown) => {hasVerificationBeenAttempted: boolean, isSignedIn: boolean} } // export type RequireSignInWrapper = (PageComponent: ComponentClass) => ComponentClass From 330f03f033e7384151218669d70b248db6bd24e5 Mon Sep 17 00:00:00 2001 From: kazukinagata Date: Tue, 28 Jul 2020 11:12:20 +0900 Subject: [PATCH 2/2] Change state type as any --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 0b908ce..34acbbb 100644 --- a/src/types.ts +++ b/src/types.ts @@ -207,7 +207,7 @@ export interface SingleLayerStringMap { export interface GenerateRequireSignInWrapperConfig { readonly redirectPathIfNotSignedIn: string - readonly mapStateToProps: (state: unknown) => {hasVerificationBeenAttempted: boolean, isSignedIn: boolean} + readonly mapStateToProps: (state: any) => {hasVerificationBeenAttempted: boolean, isSignedIn: boolean} } // export type RequireSignInWrapper = (PageComponent: ComponentClass) => ComponentClass