Skip to main content

Home > blockly > Variables > allDeveloperVariables

Variables.allDeveloperVariables() function

Find all developer variables used by blocks in the workspace.

Developer variables are never shown to the user, but are declared as global variables in the generated code. To declare developer variables, define the getDeveloperVariables function on your block and return a list of variable names. For use by generators.

Signature:

export declare function allDeveloperVariables(workspace: Workspace): string[];

Parameters

ParameterTypeDescription
workspaceWorkspaceThe workspace to search.

Returns:

string[]

A list of non-duplicated variable names.