Upgrade outdated dependencies

This commit is contained in:
Jamie Kyle 2024-11-18 11:20:23 -08:00 committed by GitHub
parent e4aa4de5e1
commit 8fde907b17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 2047 additions and 3751 deletions

View file

@ -3,11 +3,11 @@
/* eslint-disable no-console */
import type { Middleware, Store } from 'redux';
import type { Middleware, Store, UnknownAction } from 'redux';
import { applyMiddleware, createStore as reduxCreateStore } from 'redux';
import promise from 'redux-promise-middleware';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { createLogger } from 'redux-logger';
import * as log from '../logging/log';
@ -60,7 +60,9 @@ const actionStats: ActionStats = {
timestamp: Date.now(),
names: [],
};
export const actionRateLogger: Middleware = () => next => action => {
export const actionRateLogger: Middleware = () => next => _action => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const action = _action as any as UnknownAction;
const name = action.type;
const lastTimestamp = actionStats.timestamp;
let count = actionStats.names.length;
@ -101,4 +103,6 @@ const enhancer = applyMiddleware(...middlewareList);
export const createStore = (
initialState: Readonly<StateType>
): Store<StateType> => reduxCreateStore(reducer, initialState, enhancer);
): Store<StateType> =>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
reduxCreateStore<any, any>(reducer, initialState, enhancer);