Skip to content

Commit

Permalink
fix: patch type declaration of package redux-persist
Browse files Browse the repository at this point in the history
  • Loading branch information
UNIDY2002 committed Dec 10, 2023
1 parent bb6cead commit b7a487b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/thu-info-app/src/utils/extensionsDeclaration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<S, A extends Action = Action, P = S>(
config: PersistConfig<S>,
baseReducer: Reducer<S, A, P>,
): Reducer<S & {_persist: PersistState}, A, P & {_persist?: PersistState}>;
}

0 comments on commit b7a487b

Please sign in to comment.