diff --git a/app/blocks/math/arithmetic.js b/app/blocks/math/arithmetic.js index bf3dcff..30cf12c 100644 --- a/app/blocks/math/arithmetic.js +++ b/app/blocks/math/arithmetic.js @@ -1,3 +1,4 @@ +/** @type {import('#types').BlockDefinitionRaw} */ export default { type: 'io_math_arithmetic', bytecodeKey: "arithmetic", diff --git a/app/blocks/math/compare.js b/app/blocks/math/compare.js index acdcc42..4578ce7 100644 --- a/app/blocks/math/compare.js +++ b/app/blocks/math/compare.js @@ -1,3 +1,4 @@ +/** @type {import('#types').BlockDefinitionRaw} */ export default { type: 'io_logic_compare', bytecodeKey: "", diff --git a/app/blocks/math/constrain.js b/app/blocks/math/constrain.js index ae69c1f..ef5bbad 100644 --- a/app/blocks/math/constrain.js +++ b/app/blocks/math/constrain.js @@ -1,3 +1,4 @@ +/** @type {import('#types').BlockDefinitionRaw} */ export default { type: "io_math_constrain", bytecodeKey: "constrain", diff --git a/app/blocks/math/map.js b/app/blocks/math/map.js index 3473524..8a3264c 100644 --- a/app/blocks/math/map.js +++ b/app/blocks/math/map.js @@ -1,3 +1,4 @@ +/** @type {import('#types').BlockDefinitionRaw} */ export default { type: "math_map", bytecodeKey: "mapValue", diff --git a/app/blocks/math/round.js b/app/blocks/math/round.js index 02a04d9..ea9e22f 100644 --- a/app/blocks/math/round.js +++ b/app/blocks/math/round.js @@ -1,3 +1,4 @@ +/** @type {import('#types').BlockDefinitionRaw} */ export default { type: "io_math_round", bytecodeKey: "round", diff --git a/app/types.js b/app/types.js index 09a2679..cae964e 100644 --- a/app/types.js +++ b/app/types.js @@ -63,6 +63,9 @@ * @prop {(number|string)=} color A number or string from 0-360 that specifies a * color in Blockly's radial color space * @prop {(number|string)=} colour Alias for "color" + * @prop {string=} primaryCategory For blocks appearing in multiple categories, + * this property determines which menu this block will appear under in the + * docs. * @prop {string} description Markdown documentation for this block. The first * line will be automatically set as the Block's tooltip. * @prop {BlockConnections} connections