Skip to content

Commit

Permalink
Interface: Add missing param docs for singleEnableItems() and multipl…
Browse files Browse the repository at this point in the history
…eEnableItems() (#22964)
  • Loading branch information
ocean90 authored Jun 6, 2020
1 parent a9d2c1f commit ed80299
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions packages/interface/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ import { combineReducers } from '@wordpress/data';
/**
* Reducer to keep tract of the active area per scope.
*
* @param {boolean} state Previous state.
* @param {Object} action Action Object.
* @param {boolean} state Previous state.
* @param {Object} action Action object.
* @param {string} action.type Action type.
* @param {string} action.itemType Type of item.
* @param {string} action.scope Item scope.
* @param {string} action.item Item name.
*
* @return {Object} Updated state.
*/
Expand All @@ -34,10 +38,15 @@ export function singleEnableItems(
}

/**
* Reducer keeping track of the "pinned" items per scope
* Reducer keeping track of the "pinned" items per scope.
*
* @param {boolean} state Previous state.
* @param {Object} action Action Object.
* @param {boolean} state Previous state.
* @param {Object} action Action object.
* @param {string} action.type Action type.
* @param {string} action.itemType Type of item.
* @param {string} action.scope Item scope.
* @param {string} action.item Item name.
* @param {boolean} action.isEnable Whether the item is pinned.
*
* @return {Object} Updated state.
*/
Expand Down

0 comments on commit ed80299

Please sign in to comment.