Skip to content

Commit 7871a5f

Browse files
committed
Fix action type in persistanceMiddleware
1 parent c9e69d7 commit 7871a5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/persistanceMiddleware.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import { createStorage, hashArray } from "./storage-utils";
1818

1919
export function createPersistanceMiddleware(options: ThemeConfig["api"]) {
2020
const persistanceMiddleware: Middleware<{}, RootState, AppDispatch> =
21-
(storeAPI) => (next) => (action) => {
21+
(storeAPI) =>
22+
(next) =>
23+
(action: ReturnType<typeof setAuthData | typeof setSelectedAuth> | any) => {
2224
const result = next(action);
2325

2426
const state = storeAPI.getState();

0 commit comments

Comments
 (0)