Skip to content

Commit

Permalink
Update JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jun 29, 2020
1 parent c037cad commit 8c3e40f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/edit-site/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export function setTemplate( templateId ) {
}

/**
* Returns an action object used to add a template.
* Adds a new template, and sets it as the current template.
*
* @param {Object} template The template.
*
* @return {Object} Action object.
* @return {Object} Action object used to set the current template.
*/
export function* addTemplate( template ) {
const newTemplate = yield dispatch(
Expand All @@ -72,11 +72,11 @@ export function* addTemplate( template ) {
}

/**
* Returns an action object used to remove a template.
* Removes a template, and updates the current page and template.
*
* @param {number} templateId The template ID.
*
* @return {Object} Action object.
* @return {Object} Action object used to set the current page and template.
*/
export function* removeTemplate( templateId ) {
yield apiFetch( {
Expand Down

0 comments on commit 8c3e40f

Please sign in to comment.