Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 1ae0cd0

Browse files
committed
Fix jsdocs
1 parent 15a9f10 commit 1ae0cd0

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

functions/displayBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types'
88
* @param {object} block The block data.
99
* @param {number} index A unique key required by React.
1010
* @param {object} siteSettings Global settings.
11-
* @return {node} A block-based component.
11+
* @return {Element} A block-based component.
1212
*/
1313
export default function displayBlock(block, index, siteSettings) {
1414
const {attributes, name} = block

pages/search.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ export default function Search() {
3030
/**
3131
* Get post static props.
3232
*
33-
* @param {object} context Context for current post.
34-
* @param {boolean} context.preview Whether requesting preview of post.
35-
* @param {object} context.previewData Post preview data.
36-
* @return {object} Post props.
33+
* @return {object} Post props.
3734
*/
3835
export async function getStaticProps() {
3936
return await getPostTypeStaticProps({slug: '/'}, 'search')

0 commit comments

Comments
 (0)