Upgrade outdated dependencies
This commit is contained in:
parent
e4aa4de5e1
commit
8fde907b17
27 changed files with 2047 additions and 3751 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue