@@ -1519,9 +1519,11 @@ test('local answer promise on B is not rejected on connection close', async t =>
15191519
15201520 // Debug: Check B's slots
15211521 const ocapnTableB = getOcapnDebug ( ocapnB ) . ocapnTable ;
1522- const slotOnB = ocapnTableB . getSlotForValue ( capturedLocalAnswerPromise ) ;
1522+ const slotOnB = ocapnTableB . getSlotForValue (
1523+ /** @type {any } */ ( capturedLocalAnswerPromise ) ,
1524+ ) ;
15231525 const answerPosition = ocapnTableB . getLocalAnswerToPosition (
1524- capturedLocalAnswerPromise ,
1526+ /** @type { any } */ ( capturedLocalAnswerPromise ) ,
15251527 ) ;
15261528 console . log ( 'B: slot for capturedLocalAnswerPromise:' , slotOnB ) ;
15271529 console . log ( 'B: getLocalAnswerToPosition result:' , answerPosition ) ;
@@ -1668,7 +1670,7 @@ test('E() sends op:deliver with answer tracking', async t => {
16681670 const unsubscribe = getOcapnDebug ( ocapnA ) . subscribeMessages (
16691671 ( direction , message ) => {
16701672 if ( direction === 'send' ) {
1671- sentMessages . push ( message ) ;
1673+ sentMessages . push ( /** @type { {type: string} } */ ( message ) ) ;
16721674 }
16731675 } ,
16741676 ) ;
@@ -1733,7 +1735,7 @@ test('E.sendOnly() sends op:deliver-only without answer tracking', async t => {
17331735 const unsubscribe = getOcapnDebug ( ocapnA ) . subscribeMessages (
17341736 ( direction , message ) => {
17351737 if ( direction === 'send' ) {
1736- sentMessages . push ( message ) ;
1738+ sentMessages . push ( /** @type { {type: string} } */ ( message ) ) ;
17371739 }
17381740 } ,
17391741 ) ;
@@ -1804,7 +1806,7 @@ test('E.sendOnly() on function call sends op:deliver-only', async t => {
18041806 const unsubscribe = getOcapnDebug ( ocapnA ) . subscribeMessages (
18051807 ( direction , message ) => {
18061808 if ( direction === 'send' ) {
1807- sentMessages . push ( message ) ;
1809+ sentMessages . push ( /** @type { {type: string} } */ ( message ) ) ;
18081810 }
18091811 } ,
18101812 ) ;
@@ -1878,7 +1880,7 @@ test('resolver callbacks use op:deliver-only', async t => {
18781880 const unsubscribe = getOcapnDebug ( ocapnB ) . subscribeMessages (
18791881 ( direction , message ) => {
18801882 if ( direction === 'send' ) {
1881- messagesSentByB . push ( message ) ;
1883+ messagesSentByB . push ( /** @type { {type: string} } */ ( message ) ) ;
18821884 }
18831885 } ,
18841886 ) ;
0 commit comments