Migrate core/interfaces/i_component.js to goog.module

This commit is contained in:
kozbial
2021-07-16 12:33:07 -07:00
committed by Monica Kozbial
parent bfc801ed9f
commit 4ab9380434
2 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,8 @@
'use strict';
goog.provide('Blockly.IComponent');
goog.module('Blockly.IComponent');
goog.module.declareLegacyNamespace();
/**
@@ -20,11 +21,13 @@ goog.provide('Blockly.IComponent');
* ComponentManager.
* @interface
*/
Blockly.IComponent = function() {};
const IComponent = function() {};
/**
* The unique id for this component that is used to register with the
* ComponentManager.
* @type {string}
*/
Blockly.IComponent.id;
IComponent.id;
exports = IComponent;

View File

@@ -78,7 +78,7 @@ goog.addDependency('../../core/interfaces/i_autohideable.js', ['Blockly.IAutoHid
goog.addDependency('../../core/interfaces/i_block_dragger.js', ['Blockly.IBlockDragger'], [], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/interfaces/i_bounded_element.js', ['Blockly.IBoundedElement'], [], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/interfaces/i_bubble.js', ['Blockly.IBubble'], ['Blockly.IContextMenu', 'Blockly.IDraggable']);
goog.addDependency('../../core/interfaces/i_component.js', ['Blockly.IComponent'], []);
goog.addDependency('../../core/interfaces/i_component.js', ['Blockly.IComponent'], [], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/interfaces/i_connection_checker.js', ['Blockly.IConnectionChecker'], []);
goog.addDependency('../../core/interfaces/i_contextmenu.js', ['Blockly.IContextMenu'], []);
goog.addDependency('../../core/interfaces/i_copyable.js', ['Blockly.ICopyable'], []);