blockly > VariableModel > setType

VariableModel.setType() 方法

更新此变量的类型。

Signature:

setType(newType: string): this;

参数

参数 类型 说明
newType 字符串

返回

新更新的变量。