Home > blockly > serialization > workspaceComments > append
serialization.workspaceComments.append() function
Appends the comment defined by the given state to the given workspace.
Signature:
export declare function append(state: State, workspace: Workspace, { recordUndo }?: {
recordUndo?: boolean;
}): WorkspaceComment;
Parameters
| Parameter | Type | Description |
|---|---|---|
| state | State | |
| workspace | Workspace | |
| { recordUndo } | { recordUndo?: boolean; } | (Optional) |
Returns: