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

17 lines
535 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<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);
}