Skip to main content

Home > 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

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

Returns:

void