@@ -11,8 +11,6 @@ import {
1111import {
1212 FullySignedTransaction ,
1313 Transaction ,
14- TransactionWithBlockhashLifetime ,
15- TransactionWithDurableNonceLifetime ,
1614 TransactionWithinSizeLimit ,
1715 TransactionWithLifetime ,
1816} from '@solana/transactions' ;
@@ -26,29 +24,29 @@ import {
2624import { TransactionMessageWithSingleSendingSigner } from '../transaction-with-single-sending-signer' ;
2725
2826{
29- // [partiallySignTransactionMessageWithSigners]: returns a transaction with a blockhash lifetime
27+ // [partiallySignTransactionMessageWithSigners]: returns a transaction with a lifetime when the input message has a blockhash lifetime
3028 const transactionMessage = null as unknown as BaseTransactionMessage &
3129 TransactionMessageWithBlockhashLifetime &
3230 TransactionMessageWithFeePayer &
3331 TransactionMessageWithSigners ;
3432 partiallySignTransactionMessageWithSigners ( transactionMessage ) satisfies Promise <
35- Readonly < Transaction & TransactionWithBlockhashLifetime >
33+ Readonly < Transaction & TransactionWithLifetime >
3634 > ;
3735}
3836
3937{
40- // [partiallySignTransactionMessageWithSigners]: returns a transaction with a durable nonce lifetime
38+ // [partiallySignTransactionMessageWithSigners]: returns a transaction with a lifetime when the input message has a durable nonce lifetime
4139 const transactionMessage = null as unknown as BaseTransactionMessage &
4240 TransactionMessageWithDurableNonceLifetime &
4341 TransactionMessageWithFeePayer &
4442 TransactionMessageWithSigners ;
4543 partiallySignTransactionMessageWithSigners ( transactionMessage ) satisfies Promise <
46- Readonly < Transaction & TransactionWithDurableNonceLifetime >
44+ Readonly < Transaction & TransactionWithLifetime >
4745 > ;
4846}
4947
5048{
51- // [partiallySignTransactionMessageWithSigners]: returns a transaction with an unknown lifetime
49+ // [partiallySignTransactionMessageWithSigners]: returns a transaction with an unknown lifetime when the input message has an unknown lifetime
5250 const transactionMessage = null as unknown as BaseTransactionMessage &
5351 TransactionMessageWithFeePayer &
5452 TransactionMessageWithLifetime &
@@ -59,12 +57,11 @@ import { TransactionMessageWithSingleSendingSigner } from '../transaction-with-s
5957}
6058
6159{
62- // [partiallySignTransactionMessageWithSigners]: returns a transaction with no lifetime constraint
60+ // [partiallySignTransactionMessageWithSigners]: returns a transaction with a lifetime when the input message has no lifetime
6361 const transactionMessage = null as unknown as BaseTransactionMessage &
6462 TransactionMessageWithFeePayer &
6563 TransactionMessageWithSigners ;
6664 partiallySignTransactionMessageWithSigners ( transactionMessage ) satisfies Promise < Readonly < Transaction > > ;
67- // @ts -expect-error Expects no lifetime constraint
6865 partiallySignTransactionMessageWithSigners ( transactionMessage ) satisfies Promise <
6966 Readonly < Transaction & TransactionWithLifetime >
7067 > ;
@@ -83,29 +80,29 @@ import { TransactionMessageWithSingleSendingSigner } from '../transaction-with-s
8380}
8481
8582{
86- // [signTransactionMessageWithSigners]: returns a fully signed transaction with a blockhash lifetime
83+ // [signTransactionMessageWithSigners]: returns a fully signed transaction with a lifetime when the input message has a blockhash lifetime
8784 const transactionMessage = null as unknown as BaseTransactionMessage &
8885 TransactionMessageWithBlockhashLifetime &
8986 TransactionMessageWithFeePayer &
9087 TransactionMessageWithSigners ;
9188 signTransactionMessageWithSigners ( transactionMessage ) satisfies Promise <
92- Readonly < FullySignedTransaction & Transaction & TransactionWithBlockhashLifetime >
89+ Readonly < FullySignedTransaction & Transaction & TransactionWithLifetime >
9390 > ;
9491}
9592
9693{
97- // [signTransactionMessageWithSigners]: returns a fully signed transaction with a durable nonce lifetime
94+ // [signTransactionMessageWithSigners]: returns a fully signed transaction with a lifetime when the input message has a durable nonce lifetime
9895 const transactionMessage = null as unknown as BaseTransactionMessage &
9996 TransactionMessageWithDurableNonceLifetime &
10097 TransactionMessageWithFeePayer &
10198 TransactionMessageWithSigners ;
10299 signTransactionMessageWithSigners ( transactionMessage ) satisfies Promise <
103- Readonly < FullySignedTransaction & Transaction & TransactionWithDurableNonceLifetime >
100+ Readonly < FullySignedTransaction & Transaction & TransactionWithLifetime >
104101 > ;
105102}
106103
107104{
108- // [signTransactionMessageWithSigners]: returns a fully signed transaction with an unknown lifetime
105+ // [signTransactionMessageWithSigners]: returns a fully signed transaction with an unknown lifetime when the input message has an unknown lifetime
109106 const transactionMessage = null as unknown as BaseTransactionMessage &
110107 TransactionMessageWithFeePayer &
111108 TransactionMessageWithLifetime &
@@ -116,12 +113,11 @@ import { TransactionMessageWithSingleSendingSigner } from '../transaction-with-s
116113}
117114
118115{
119- // [signTransactionMessageWithSigners]: returns a transaction with no lifetime constraint
116+ // [signTransactionMessageWithSigners]: returns a transaction with a lifetime when the input message has no lifetime
120117 const transactionMessage = null as unknown as BaseTransactionMessage &
121118 TransactionMessageWithFeePayer &
122119 TransactionMessageWithSigners ;
123120 signTransactionMessageWithSigners ( transactionMessage ) satisfies Promise < Readonly < Transaction > > ;
124- // @ts -expect-error Expects no lifetime constraint
125121 signTransactionMessageWithSigners ( transactionMessage ) satisfies Promise <
126122 Readonly < Transaction & TransactionWithLifetime >
127123 > ;
0 commit comments