瀏覽代碼

Typo; .withMiddlewares actually exported.

Herby Vojčík 6 年之前
父節點
當前提交
f1a710da28
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -35,7 +35,7 @@ export default () => {
         return this;
     }
 
-    function withMIddlewares (..._middlewares) {
+    function withMiddlewares (..._middlewares) {
         middlewares.push(..._middlewares);
         return this;
     }
@@ -59,5 +59,5 @@ export default () => {
         return store;
     }
 
-    return {withReducers, withEffects, withPersistence, on, create};
+    return {withReducers, withMiddlewares, withEffects, withPersistence, on, create};
 }