Skip to content

Commit

Permalink
chore: reexport procedure related symbols (google#6769)
Browse files Browse the repository at this point in the history
* chore: reexport triggerProcedureUpdate

* chore: export interfaces

* fix: incorrect module ID in IProcedureBlock
  • Loading branch information
BeksOmega authored Jan 20, 2023
1 parent b4ae803 commit 3eb7031
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_procedure_block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
12 changes: 11 additions & 1 deletion core/procedures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -500,4 +504,10 @@ export {
ObservableProcedureMap,
ObservableProcedureModel,
ObservableParameterModel,
triggerProceduresUpdate,
IParameterModel,
IProcedureBlock,
isProcedureBlock,
IProcedureMap,
IProcedureModel,
};

0 comments on commit 3eb7031

Please sign in to comment.