chore: change return to returns and add some newlines

This commit is contained in:
Maribeth Bottorff
2022-08-16 16:13:39 -07:00
parent 169959bc08
commit d6d8656a45
172 changed files with 2752 additions and 772 deletions

View File

@@ -7,6 +7,7 @@
/**
* Contains top-level functions for serializing workspaces to plain JavaScript
* objects.
*
* @namespace Blockly.serialization.workspaces
*/
import * as goog from '../../closure/goog/goog.js';
@@ -23,8 +24,9 @@ import {WorkspaceSvg} from '../workspace_svg.js';
/**
* Returns the state of the workspace as a plain JavaScript object.
*
* @param workspace The workspace to serialize.
* @return The serialized state of the workspace.
* @returns The serialized state of the workspace.
* @alias Blockly.serialization.workspaces.save
*/
export function save(workspace: Workspace):
@@ -42,10 +44,12 @@ export function save(workspace: Workspace):
/**
* Loads the variable represented by the given state into the given workspace.
*
* @param state The state of the workspace to deserialize into the workspace.
* @param workspace The workspace to add the new state to.
* @param param1 recordUndo: If true, events triggered by this function will be
* undo-able by the user. False by default.
* @param param1.recordUndo
* @alias Blockly.serialization.workspaces.load
*/
export function load(