2022-01-10 18:41:53 +03:00
|
|
|
import { instrument, Options } from '@redux-devtools/instrument';
|
2021-10-28 23:39:47 +03:00
|
|
|
import { Action, Reducer, StoreEnhancerStoreCreator } from 'redux';
|
|
|
|
|
|
|
|
export default function configureStore<
|
|
|
|
S,
|
2023-11-05 00:04:23 +03:00
|
|
|
A extends Action<string>,
|
2021-10-28 23:39:47 +03:00
|
|
|
MonitorState,
|
2023-11-05 00:04:23 +03:00
|
|
|
MonitorAction extends Action<string>,
|
2021-10-28 23:39:47 +03:00
|
|
|
>(
|
2024-08-06 06:11:13 +03:00
|
|
|
next: StoreEnhancerStoreCreator,
|
2021-10-28 23:39:47 +03:00
|
|
|
subscriber: Reducer<MonitorState, MonitorAction>,
|
2023-07-12 21:03:20 +03:00
|
|
|
options: Options<S, A, MonitorState, MonitorAction>,
|
2021-10-28 23:39:47 +03:00
|
|
|
) {
|
|
|
|
return instrument(subscriber, options)(next);
|
|
|
|
}
|