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.
blockly > VariableModel > setType
Updates the type of this variable.
Signature:
setType(newType: string): this;
| Parameter | Type | Description |
|---|---|---|
| newType | string |
Returns:
this
The newly-updated variable.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-16 UTC.