Skip to main content

blockly > VariableModel > setType

VariableModel.setType() method

Updates the type of this variable.

Signature:

setType(newType: string): this;

Parameters

Parameter

Type

Description

newType

string

Returns:

this

The newly-updated variable.