Przeglądaj źródła

Typo; .withMiddlewares actually exported.

Herby Vojčík 6 lat temu
rodzic
commit
f1a710da28
1 zmienionych plików z 2 dodań i 2 usunięć
  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};
 }