Static type support for block-shareable-procedures
Check for duplicates
- [x] I have searched for similar issues before opening a new one.
Component
block-shareable-procedures
Request
Would there be interest in adding static type support to the block-shareable-procedures plugin? There is already a basic structure, but we would need to add:
- Type field for the parameters
- Type field for the return value
- Implement the events to listen to changes, etc.
Sample suggestion:
Additional context
It would be nice if it would work with the @blockly/plugin-typed-variable-modal plugin.
We did design the shareable procedure models to work with typed variables, but I'm not sure if it makes sense for this plugin to own their implementation as the design may depend on which language is being generated. Also, this would be the only place in Blockly where we provide variable blocks that can have their types selected like this.
So this isn't something the core team is likely to work on, but we can leave this open as a feature request to see if others would find this helpful.