Skip to content

Commit

Permalink
Block Editor: Update 'getBlocksByName' JSDoc (#63919)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
Mamaduka and Mamaduka authored Jul 25, 2024
1 parent ae83155 commit 3dfdfef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/data/data-core-block-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Returns all blocks that match a blockName. Results include nested blocks.
_Parameters_

- _state_ `Object`: Global application state.
- _blockName_ `?string`: Optional block name, if not specified, returns an empty array.
- _blockName_ `string[]`: Block name(s) for which clientIds are to be returned.

_Returns_

Expand Down
8 changes: 4 additions & 4 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ export const getGlobalBlockCount = createSelector(
/**
* Returns all blocks that match a blockName. Results include nested blocks.
*
* @param {Object} state Global application state.
* @param {?string} blockName Optional block name, if not specified, returns an empty array.
* @param {Object} state Global application state.
* @param {string[]} blockName Block name(s) for which clientIds are to be returned.
*
* @return {Array} Array of clientIds of blocks with name equal to blockName.
*/
Expand All @@ -362,8 +362,8 @@ export const getBlocksByName = createSelector(
*
* @deprecated
*
* @param {Object} state Global application state.
* @param {?string} blockName Optional block name, if not specified, returns an empty array.
* @param {Object} state Global application state.
* @param {string[]} blockName Block name(s) for which clientIds are to be returned.
*
* @return {Array} Array of clientIds of blocks with name equal to blockName.
*/
Expand Down

0 comments on commit 3dfdfef

Please sign in to comment.