From b7a487b00c6cae608d92d2dc66ada368cc1453a4 Mon Sep 17 00:00:00 2001 From: UNIDY2002 Date: Sun, 10 Dec 2023 14:00:48 +0800 Subject: [PATCH] fix: patch type declaration of package `redux-persist` https://github.com/rt2zz/redux-persist/issues/1459#issuecomment-1841271813 --- apps/thu-info-app/src/utils/extensionsDeclaration.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/thu-info-app/src/utils/extensionsDeclaration.d.ts b/apps/thu-info-app/src/utils/extensionsDeclaration.d.ts index 0e8cccce3..4f2c94beb 100644 --- a/apps/thu-info-app/src/utils/extensionsDeclaration.d.ts +++ b/apps/thu-info-app/src/utils/extensionsDeclaration.d.ts @@ -9,3 +9,13 @@ declare global { format(...args: any[]): string; } } + +import type {Action, Reducer} from "redux"; +import type {PersistConfig, PersistState} from "redux-persist"; + +declare module "redux-persist" { + export function persistReducer( + config: PersistConfig, + baseReducer: Reducer, + ): Reducer; +}