From 3c77ff1fb2d6096a00d21f99fe71a5df48b2e750 Mon Sep 17 00:00:00 2001 From: kozbial Date: Mon, 19 Jul 2021 11:19:08 -0700 Subject: [PATCH] Migrate core/interfaces/i_collapsible_toolbox_item.js, core/interfaces/i_selectable_toolbox_item.js, and core/interfaces/i_toolbox_item.js named requires --- core/interfaces/i_collapsible_toolbox_item.js | 8 ++++---- core/interfaces/i_selectable_toolbox_item.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/interfaces/i_collapsible_toolbox_item.js b/core/interfaces/i_collapsible_toolbox_item.js index 3af4d2692..732c7aab7 100644 --- a/core/interfaces/i_collapsible_toolbox_item.js +++ b/core/interfaces/i_collapsible_toolbox_item.js @@ -14,20 +14,20 @@ goog.module('Blockly.ICollapsibleToolboxItem'); goog.module.declareLegacyNamespace(); -goog.require('Blockly.ISelectableToolboxItem'); -goog.requireType('Blockly.IToolboxItem'); +const ISelectableToolboxItem = goog.require('Blockly.ISelectableToolboxItem'); +const IToolboxItem = goog.requireType('Blockly.IToolboxItem'); /** * Interface for an item in the toolbox that can be collapsed. - * @extends {Blockly.ISelectableToolboxItem} + * @extends {ISelectableToolboxItem} * @interface */ const ICollapsibleToolboxItem = function() {}; /** * Gets any children toolbox items. (ex. Gets the subcategories) - * @return {!Array} The child toolbox items. + * @return {!Array} The child toolbox items. */ ICollapsibleToolboxItem.prototype.getChildToolboxItems; diff --git a/core/interfaces/i_selectable_toolbox_item.js b/core/interfaces/i_selectable_toolbox_item.js index 535f65401..2addc7b9e 100644 --- a/core/interfaces/i_selectable_toolbox_item.js +++ b/core/interfaces/i_selectable_toolbox_item.js @@ -14,13 +14,13 @@ goog.module('Blockly.ISelectableToolboxItem'); goog.module.declareLegacyNamespace(); -goog.require('Blockly.IToolboxItem'); -goog.requireType('Blockly.utils.toolbox'); +const IToolboxItem = goog.require('Blockly.IToolboxItem'); +const {FlyoutItemInfoArray} = goog.requireType('Blockly.utils.toolbox'); /** * Interface for an item in the toolbox that can be selected. - * @extends {Blockly.IToolboxItem} + * @extends {IToolboxItem} * @interface */ const ISelectableToolboxItem = function() {}; @@ -35,7 +35,7 @@ ISelectableToolboxItem.prototype.getName; /** * Gets the contents of the toolbox item. These are items that are meant to be * displayed in the flyout. - * @return {!Blockly.utils.toolbox.FlyoutItemInfoArray|string} The definition + * @return {!FlyoutItemInfoArray|string} The definition * of items to be displayed in the flyout. * @public */