mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
11 lines
528 B
TypeScript
11 lines
528 B
TypeScript
import {createStore, applyMiddleware} from 'redux';
|
|
import _thunk, {ThunkMiddleware} from 'redux-thunk';
|
|
import rootReducer from '../reducers/index';
|
|
import effects from '../utils/effects';
|
|
import * as plugins from '../utils/plugins';
|
|
import writeMiddleware from './write-middleware';
|
|
import {HyperState, HyperActions} from '../hyper';
|
|
const thunk: ThunkMiddleware<HyperState, HyperActions> = _thunk;
|
|
|
|
export default () =>
|
|
createStore(rootReducer, applyMiddleware(thunk, plugins.middleware, thunk, writeMiddleware, effects));
|