Stay organized with collections Save and categorize content based on your preferences.

blockly > common > createBlockDefinitionsFromJsonArray

common.createBlockDefinitionsFromJsonArray() function

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


export declare function createBlockDefinitionsFromJsonArray(jsonArray: any[]): {
    [key: string]: BlockDefinition;


Parameter Type Description
jsonArray any[] An array of JSON block definitions.


{ [key: string]: BlockDefinition; }

A map of the block definitions created.