diff --git a/src/extension-support/argument-type.js b/src/extension-support/argument-type.js index 0589e9fb6..538a04f5d 100644 --- a/src/extension-support/argument-type.js +++ b/src/extension-support/argument-type.js @@ -1,8 +1,31 @@ +/** + * Block argument types + * @enum {string} + */ const ArgumentType = { + /** + * Numeric value with angle picker + */ ANGLE: 'angle', + + /** + * Boolean value with hexagonal placeholder + */ BOOLEAN: 'Boolean', + + /** + * Numeric value with color picker + */ COLOR: 'color', + + /** + * Numeric value with text field + */ NUMBER: 'number', + + /** + * String value with text field + */ STRING: 'string' }; diff --git a/src/extension-support/block-type.js b/src/extension-support/block-type.js index 587f7d598..9a87b745f 100644 --- a/src/extension-support/block-type.js +++ b/src/extension-support/block-type.js @@ -1,8 +1,31 @@ +/** + * Types of block + * @enum {string} + */ const BlockType = { + /** + * Boolean reporter with hexagonal shape + */ BOOLEAN: 'Boolean', + + /** + * Command block + */ COMMAND: 'command', + + /** + * Specialized command block which may or may not run a child branch + */ CONDITIONAL: 'conditional', + + /** + * Hat block which conditionally starts a block stack + */ HAT: 'hat', + + /** + * General reporter with numeric or string value + */ REPORTER: 'reporter' };