Skip to main content

Home > blockly > VariableModel > setType

VariableModel.setType() method

Updates the type of this variable.

Signature:

setType(newType: string): this;

Parameters

ParameterTypeDescription
newTypestring

Returns:

this

The newly-updated variable.