Fix annotations

This commit is contained in:
Rachel Fenichel
2021-07-29 12:52:14 -07:00
parent d58a878fad
commit 714bb6120f
2 changed files with 8 additions and 8 deletions

View File

@@ -94,11 +94,11 @@ Blockly.draggingConnections = [];
/**
* Get the current contents of the clipboard and associated metadata.
* @return {{xml: Element, source: WorkspaceSvg, typeCounts: Object}} An object
* containing the clipboard contents and associated metadata.
* @return {{xml: ?Element, source: ?Blockly.WorkspaceSvg, typeCounts: ?Object}}
* An object containing the clipboard contents and associated metadata.
* @public
*/
Blockly.getClipboardInfo = Blockly.common.getClipboardInfo;
Blockly.getClipboardInfo = Blockly.clipboard.getClipboardInfo;
/**
* Cached value for whether 3D is supported.

View File

@@ -22,29 +22,29 @@ const WorkspaceSvg = goog.requireType('Blockly.WorkspaceSvg');
/**
* Contents of the local clipboard.
* @type {Element}
* @type {?Element}
* @private
*/
let xml = null;
/**
* Source of the local clipboard.
* @type {WorkspaceSvg}
* @type {?WorkspaceSvg}
* @private
*/
let source = null;
/**
* Map of types to type counts for the clipboard object and descendants.
* @type {Object}
* @type {?Object}
* @private
*/
let typeCounts = null;
/**
* Get the current contents of the clipboard and associated metadata.
* @return {{xml: Element, source: WorkspaceSvg, typeCounts: Object}} An object
* containing the clipboard contents and associated metadata.
* @return {{xml: ?Element, source: ?WorkspaceSvg, typeCounts: ?Object}} An
* object containing the clipboard contents and associated metadata.
*/
const getClipboardInfo = function() {
return {xml: xml, source: source, typeCounts: typeCounts};