blockly > common > defineBlocks

common.defineBlocks() function

Add the specified block definitions to the block definitions dictionary (Blockly.Blocks).

Signature:

export declare function defineBlocks(blocks: {
    [key: string]: BlockDefinition;
}): void;

Parameters

Parameter Type Description
blocks { [key: string]: BlockDefinition; } A map of block type names to block definitions.

Returns:

void