/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
// @flow
/* global window */
/**
* Redux store utils
* @module utils/create-store
*/
import { createStore, applyMiddleware } from "redux";
import { waitUntilService } from "./middleware/wait-service";
import { log } from "./middleware/log";
import { history } from "./middleware/history";
import { promise } from "./middleware/promise";
import { thunk } from "./middleware/thunk";
import { timing } from "./middleware/timing";
/**
* @memberof utils/create-store
* @static
*/
type ReduxStoreOptions = {
makeThunkArgs?: Function,
history?: Array