Skip to content

Commit 8f50336

Browse files
FlyingDRseantcoyote
authored andcommitted
Minor fix for JSDoc for createStore() arguments to avoid "missed argument" warning from IDE, e.g. WebStorm. Fixes reduxjs#1979 (reduxjs#1984)
1 parent 3d50ff6 commit 8f50336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export var ActionTypes = {
2828
* If you use `combineReducers` to produce the root reducer function, this must be
2929
* an object with the same shape as `combineReducers` keys.
3030
*
31-
* @param {Function} enhancer The store enhancer. You may optionally specify it
31+
* @param {Function} [enhancer] The store enhancer. You may optionally specify it
3232
* to enhance the store with third-party capabilities such as middleware,
3333
* time travel, persistence, etc. The only store enhancer that ships with Redux
3434
* is `applyMiddleware()`.

0 commit comments

Comments
 (0)