mirror of
https://github.com/google/blockly.git
synced 2026-03-10 23:30:13 +01:00
chore: change return to returns and add some newlines
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user