Skip to content

Commit 62d00c4

Browse files
committed
Add placeholder for type
1 parent b25089f commit 62d00c4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/blocks/mrc_get_parameter.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ interface GetParameterMixin extends GetParameterMixinType {
3535
type GetParameterMixinType = typeof GET_PARAMETER_BLOCK;
3636

3737
const GET_PARAMETER_BLOCK = {
38+
parameterType : '', // Later this will be set to the type of the parameter, e.g. 'string', 'number', etc.
3839
/**
3940
* Block initialization.
4041
*/
@@ -44,9 +45,13 @@ const GET_PARAMETER_BLOCK = {
4445
.appendField('parameter')
4546
.appendField(createFieldNonEditableText('parameter'), 'PARAMETER_NAME');
4647

47-
//this.setOutput(true, OUTPUT_NAME);
48-
this.setOutput(true);
48+
this.setOutput(true, this.parameterType);
4949
},
50+
setNameAndType: function (this: GetParameterBlock, name: string, type: string): void {
51+
this.setFieldValue(name, 'PARAMETER_NAME');
52+
this.parameterType = type;
53+
this.setOutput(true, type);
54+
}
5055
}
5156

5257
export const setup = function () {

0 commit comments

Comments
 (0)