Skip to content

Commit c31879b

Browse files
committed
Add ts test for Paramter
1 parent 2f0e204 commit c31879b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/types/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,3 +680,14 @@ actionUuid.toMessage();
680680

681681
// $ExpectType UUID
682682
rclnodejs.ActionUuid.randomMessage();
683+
684+
// ---- Parameter -----
685+
// $ExpectType Parameter
686+
const param = rclnodejs.createMessageObject('rcl_interfaces/msg/Parameter');
687+
param.name = 'integer_param';
688+
param.value.type = rclnodejs.ParameterType.PARAMETER_INTEGER;
689+
param.value.integer_value = BigInt(123);
690+
691+
param.name = 'byte_array_param';
692+
param.value.type = rclnodejs.ParameterType.PARAMETER_BYTE_ARRAY;
693+
param.value.byte_array_value = [1, 2, 3];

0 commit comments

Comments
 (0)