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

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

View File

@@ -11,17 +11,20 @@
'use strict';
goog.provide('Blockly.IDeletable');
goog.module('Blockly.IDeletable');
goog.module.declareLegacyNamespace();
/**
* The interface for an object that can be deleted.
* @interface
*/
Blockly.IDeletable = function() {};
const IDeletable = function() {};
/**
* Get whether this object is deletable or not.
* @return {boolean} True if deletable.
*/
Blockly.IDeletable.prototype.isDeletable;
IDeletable.prototype.isDeletable;
exports = IDeletable;

View File

@@ -82,7 +82,7 @@ goog.addDependency('../../core/interfaces/i_component.js', ['Blockly.IComponent'
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'], []);
goog.addDependency('../../core/interfaces/i_deletable.js', ['Blockly.IDeletable'], []);
goog.addDependency('../../core/interfaces/i_deletable.js', ['Blockly.IDeletable'], [], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/interfaces/i_delete_area.js', ['Blockly.IDeleteArea'], ['Blockly.IDragTarget']);
goog.addDependency('../../core/interfaces/i_drag_target.js', ['Blockly.IDragTarget'], ['Blockly.IComponent']);
goog.addDependency('../../core/interfaces/i_draggable.js', ['Blockly.IDraggable'], ['Blockly.IDeletable']);