blockly > Procedures > IProcedureModel > setReturnTypes
Procedures.IProcedureModel.setReturnTypes() method
Sets the return type(s) of the procedure.
Pass null to represent a procedure that does not return.
Signature:
setReturnTypes(types: string[] | null): this;
Parameters
Parameter |
Type |
Description |
types |
string[] | null |
|
Returns:
this
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 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `setReturnTypes` method is used to define the data types a procedure will output upon completion."],["Providing `null` as input indicates the procedure doesn't return any specific value."],["The method accepts an array of strings representing the return types or `null` for no return."],["By calling this method, the return types associated with the procedure model are updated."]]],[]]