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

@@ -23,7 +23,7 @@ const BlocklyOptions = goog.requireType('Blockly.BlocklyOptions');
/* eslint-disable-next-line no-unused-vars */
const ConnectionDB = goog.requireType('Blockly.ConnectionDB');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocation = goog.requireType('Blockly.IASTNodeLocation');
const IASTNodeLocation = goog.require('Blockly.IASTNodeLocation');
/* eslint-disable-next-line no-unused-vars */
const IConnectionChecker = goog.requireType('Blockly.IConnectionChecker');
const Options = goog.require('Blockly.Options');