Add JSDoc tags for ArgumentType & BlockType

This commit is contained in:
Christopher Willis-Ford 2018-03-20 11:23:55 -07:00
parent 1049e90a8f
commit d3352ac54d
2 changed files with 46 additions and 0 deletions

View file

@ -1,8 +1,31 @@
/**
* Block argument types
* @enum {string}
*/
const ArgumentType = { const ArgumentType = {
/**
* Numeric value with angle picker
*/
ANGLE: 'angle', ANGLE: 'angle',
/**
* Boolean value with hexagonal placeholder
*/
BOOLEAN: 'Boolean', BOOLEAN: 'Boolean',
/**
* Numeric value with color picker
*/
COLOR: 'color', COLOR: 'color',
/**
* Numeric value with text field
*/
NUMBER: 'number', NUMBER: 'number',
/**
* String value with text field
*/
STRING: 'string' STRING: 'string'
}; };

View file

@ -1,8 +1,31 @@
/**
* Types of block
* @enum {string}
*/
const BlockType = { const BlockType = {
/**
* Boolean reporter with hexagonal shape
*/
BOOLEAN: 'Boolean', BOOLEAN: 'Boolean',
/**
* Command block
*/
COMMAND: 'command', COMMAND: 'command',
/**
* Specialized command block which may or may not run a child branch
*/
CONDITIONAL: 'conditional', CONDITIONAL: 'conditional',
/**
* Hat block which conditionally starts a block stack
*/
HAT: 'hat', HAT: 'hat',
/**
* General reporter with numeric or string value
*/
REPORTER: 'reporter' REPORTER: 'reporter'
}; };