redux-devtools/packages/redux-devtools-remote/src/configureStore.ts

16 lines
463 B
TypeScript
Raw Normal View History

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,
A extends Action<string>,
2021-10-28 23:39:47 +03:00
MonitorState,
MonitorAction extends Action<string>,
2021-10-28 23:39:47 +03:00
>(
next: StoreEnhancerStoreCreator,
2021-10-28 23:39:47 +03:00
subscriber: Reducer<MonitorState, MonitorAction>,
options: Options<S, A, MonitorState, MonitorAction>,
2021-10-28 23:39:47 +03:00
) {
return instrument(subscriber, options)(next);
}