mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
fix: Use require instead of requireType for interfaces (#5568)
But only if the interface is used in an @implements or @extends declaration. Fixes #5450
This commit is contained in:
committed by
GitHub
parent
c5ffd036ca
commit
d2d5dc4b71
@@ -22,7 +22,7 @@ const Connection = goog.requireType('Blockly.Connection');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const ConstantProvider = goog.requireType('Blockly.blockRendering.ConstantProvider');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const IPathObject = goog.requireType('Blockly.blockRendering.IPathObject');
|
||||
const IPathObject = goog.require('Blockly.blockRendering.IPathObject');
|
||||
const Svg = goog.require('Blockly.utils.Svg');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const Theme = goog.requireType('Blockly.Theme');
|
||||
|
||||
@@ -23,7 +23,7 @@ const Debug = goog.requireType('Blockly.blockRendering.Debug');
|
||||
const Drawer = goog.require('Blockly.blockRendering.Drawer');
|
||||
const InsertionMarkerManager = goog.require('Blockly.InsertionMarkerManager');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const IRegistrable = goog.requireType('Blockly.IRegistrable');
|
||||
const IRegistrable = goog.require('Blockly.IRegistrable');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const IPathObject = goog.requireType('Blockly.blockRendering.IPathObject');
|
||||
const MarkerSvg = goog.require('Blockly.blockRendering.MarkerSvg');
|
||||
|
||||
Reference in New Issue
Block a user