Skip to main content

Home > blockly > common > defineBlocksWithJsonArray

common.defineBlocksWithJsonArray() function

Define blocks from an array of JSON block definitions, as might be generated by the Blockly Developer Tools.

Signature:

export declare function defineBlocksWithJsonArray(jsonArray: any[]): void;

Parameters

ParameterTypeDescription
jsonArrayany[]An array of JSON block definitions.

Returns:

void