@@ -7,6 +7,7 @@ const NODE_NAME = 'test_node';
77const LIFECYCLE_NODE_NAME = 'lifecycle_test_node' ;
88const TYPE_CLASS = 'std_msgs/msg/String' ;
99const TOPIC = 'topic' ;
10+ const SERVICE_NAME = 'service' ;
1011const MSG = rclnodejs . createMessageObject ( TYPE_CLASS ) ;
1112MSG . data = '' ;
1213
@@ -27,6 +28,7 @@ expectType<string | undefined>(rclnodejs.DistroUtils.getDistroName(2105));
2728
2829// ---- Context -----
2930expectType < rclnodejs . Context > ( rclnodejs . Context . defaultContext ( ) ) ;
31+ expectType < number > ( rclnodejs . Context . defaultContext ( ) . domainId ( ) ) ;
3032
3133// ---- NodeOptions ----
3234const nodeOptions = new rclnodejs . NodeOptions ( ) ;
@@ -69,6 +71,8 @@ expectType<Array<object>>(node.getPublishersInfoByTopic('topic', false));
6971expectType < Array < object > > ( node . getSubscriptionsInfoByTopic ( 'topic' , false ) ) ;
7072expectType < number > ( node . countPublishers ( TOPIC ) ) ;
7173expectType < number > ( node . countSubscribers ( TOPIC ) ) ;
74+ expectType < number > ( node . countClients ( SERVICE_NAME ) ) ;
75+ expectType < number > ( node . countServices ( SERVICE_NAME ) ) ;
7276expectType < rclnodejs . Options < string | rclnodejs . QoS > > (
7377 rclnodejs . Node . getDefaultOptions ( )
7478) ;
@@ -229,6 +233,9 @@ expectType<bigint>(timer.timeSinceLastCall());
229233expectType < bigint > ( timer . timeUntilNextCall ( ) ) ;
230234expectType < boolean > ( timer . isCanceled ( ) ) ;
231235expectType < void > ( timer . cancel ( ) ) ;
236+ expectType < void > ( timer . changeTimerPeriod ( BigInt ( 100000 ) ) ) ;
237+ expectType < bigint > ( timer . timerPeriod ( ) ) ;
238+ expectType < object > ( timer . callTimerWithInfo ( ) ) ;
232239
233240// ---- Rate ----
234241const rate = await node . createRate ( 1 ) ;
0 commit comments