UNPKG

rako

Version:

[![LICENSE](https://img.shields.io/badge/license-MIT%20(The%20996%20Prohibited%20License)-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)

17 lines (12 loc) 390 B
import {_createStores} from './createStores' function withMiddlewares(...middlewares) { if (middlewares.some(middleware => typeof middleware !== 'function')) { throw new TypeError("Expected every `middleware` to be a function.") } return function createStores(...producers) { return _createStores(producers, middlewares) } } export { withMiddlewares }