mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-24 18:43:54 +03:00
17 lines
535 B
TypeScript
17 lines
535 B
TypeScript
|
import instrument, { Options } from '@redux-devtools/instrument';
|
||
|
import { Action, Reducer, StoreEnhancerStoreCreator } from 'redux';
|
||
|
|
||
|
export default function configureStore<
|
||
|
S,
|
||
|
A extends Action<unknown>,
|
||
|
MonitorState,
|
||
|
MonitorAction extends Action<unknown>
|
||
|
>(
|
||
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||
|
next: StoreEnhancerStoreCreator<{}, unknown>,
|
||
|
subscriber: Reducer<MonitorState, MonitorAction>,
|
||
|
options: Options<S, A, MonitorState, MonitorAction>
|
||
|
) {
|
||
|
return instrument(subscriber, options)(next);
|
||
|
}
|