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:
Christopher Allen
2021-09-29 17:44:21 +01:00
committed by GitHub
parent c5ffd036ca
commit d2d5dc4b71
38 changed files with 123 additions and 123 deletions

View File

@@ -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');

View File

@@ -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');