feat: Add a JSON Block definition interface by heliacer · Pull Request #9613 · RaspberryPiFoundation/blockly
hi @maribethb,
I've made the changes you requested.
for the custom fields (and inputs), I provided an UnknownArg which looks like this
interface UnknownArg { type: string [key: string]: unknown }
this preserves existing typings, so intellisense continues to work as expected.
If you'd start typing "pr" it would suggest you previousStatement and so on. I personally think that this change is really helpful, since it doesn't require you to always rely on the block factory if you already know how the basic json block definition looks like.
Thanks :D & Have a good day