From b7a6452cec055f7f7efaac7b672bf85b80aedb38 Mon Sep 17 00:00:00 2001 From: Alexander Grimalovsky Date: Sat, 24 Sep 2016 18:36:53 +0300 Subject: [PATCH] Minor fix for JSDoc for createStore() arguments to avoid "missed argument" warning from IDE, e.g. WebStorm. Fixes #1979 --- src/createStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createStore.js b/src/createStore.js index 8853f98b0a..b914fafd29 100644 --- a/src/createStore.js +++ b/src/createStore.js @@ -28,7 +28,7 @@ export var ActionTypes = { * If you use `combineReducers` to produce the root reducer function, this must be * an object with the same shape as `combineReducers` keys. * - * @param {Function} enhancer The store enhancer. You may optionally specify it + * @param {Function} [enhancer] The store enhancer. You may optionally specify it * to enhance the store with third-party capabilities such as middleware, * time travel, persistence, etc. The only store enhancer that ships with Redux * is `applyMiddleware()`.