diff --git a/blocks/procedures.js b/blocks/procedures.js index 31e652a3fa2..a2bf4606a75 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -27,7 +27,7 @@ const {Block} = goog.requireType('Blockly.Block'); // TODO (6248): Properly import the BlockDefinition type. /* eslint-disable-next-line no-unused-vars */ const BlockDefinition = Object; -const {isProcedureBlock} = goog.require('Blockly.procedures.IProcedureModel'); +const {isProcedureBlock} = goog.require('Blockly.procedures.IProcedureBlock'); const {ObservableProcedureModel} = goog.require('Blockly.procedures.ObservableProcedureModel'); const {ObservableParameterModel} = goog.require('Blockly.procedures.ObservableParameterModel'); const {config} = goog.require('Blockly.config'); diff --git a/core/interfaces/i_procedure_block.ts b/core/interfaces/i_procedure_block.ts index 59ca26b23c3..133441013b7 100644 --- a/core/interfaces/i_procedure_block.ts +++ b/core/interfaces/i_procedure_block.ts @@ -7,7 +7,7 @@ import type {Block} from '../block.js'; import {IProcedureModel} from './i_procedure_model.js'; import * as goog from '../../closure/goog/goog.js'; -goog.declareModuleId('Blockly.procedures.IProcedureModel'); +goog.declareModuleId('Blockly.procedures.IProcedureBlock'); /** The interface for a block which models a procedure. */ diff --git a/core/procedures.ts b/core/procedures.ts index 1ebe76b7ed5..3adcee5a68f 100644 --- a/core/procedures.ts +++ b/core/procedures.ts @@ -23,12 +23,16 @@ import type {Abstract} from './events/events_abstract.js'; import type {BubbleOpen} from './events/events_bubble_open.js'; import * as eventUtils from './events/utils.js'; import {Field, UnattachedFieldError} from './field.js'; -import {isProcedureBlock} from './interfaces/i_procedure_block.js'; import {Msg} from './msg.js'; import {Names} from './names.js'; +import {IParameterModel} from './interfaces/i_parameter_model.js'; +import {IProcedureMap} from './interfaces/i_procedure_map.js'; +import {IProcedureModel} from './interfaces/i_procedure_model.js'; +import {IProcedureBlock, isProcedureBlock} from './interfaces/i_procedure_block.js'; import {ObservableProcedureMap} from './procedures/observable_procedure_map.js'; import {ObservableProcedureModel} from './procedures/observable_procedure_model.js'; import {ObservableParameterModel} from './procedures/observable_parameter_model.js'; +import {triggerProceduresUpdate} from './procedures/update_procedures.js'; import * as utilsXml from './utils/xml.js'; import * as Variables from './variables.js'; import type {Workspace} from './workspace.js'; @@ -500,4 +504,10 @@ export { ObservableProcedureMap, ObservableProcedureModel, ObservableParameterModel, + triggerProceduresUpdate, + IParameterModel, + IProcedureBlock, + isProcedureBlock, + IProcedureMap, + IProcedureModel, };