Skip to content

Define procedures interfaces #4829

@rachel-fenichel

Description

@rachel-fenichel

There is currently a typedef Blockly.Procedures.ProcedureBlock that says that the object has getProcedureCall, renameProcedure, and getProcedureDef.

Three questions:

  • Should this be an interface instead of a typedef?
    • The ways that we construct blocks doesn't allow for the interface annotation on the block definition to be reflected in the uses of that block, so we need to cast in any case. So a typedef may be more accurate.
  • Should it actually be two typedefs?
    • ProcedureDef and ProcedureCall
  • Should it/they be on the Blockly.Procedures namespace, or somewhere else?

Related to #4798

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions