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