blockly > Procedures > getDefinition

Procedures.getDefinition() function

Find the definition block for the named procedure.

Signature:

export declare function getDefinition(name: string, workspace: Workspace): Block | null;

Parameters

Parameter Type Description
name string Name of procedure.
workspace Workspace The workspace to search.

Returns:

Block | null

The procedure definition block, or null not found.