Skip to content

Commit ca54e12

Browse files
committed
fix: update Feature type to clarify subscription version support structure
1 parent 14a08c0 commit ca54e12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

requests-responses.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ type DeviceInfo = {
8989
}
9090

9191
type Feature =
92-
| { name: 'SendTransaction'; maxMessages: number } // `maxMessages` is maximum number of messages in one `SendTransaction` that the wallet supports
93-
| { name: 'SignData'; types: ('text' | 'binary' | 'cell')[] } // `types` is list of supported data types for `SignData` method
94-
| { name: 'Subscription'; versions: 'v2'[] }; // `versions` is list of supported subscription versions for `CreateSubscription` and `CancelSubscription` methods (currently only 'v2' is supported)
92+
| { name: 'SendTransaction'; maxMessages: number } // `maxMessages` is the maximum number of messages in a single `SendTransaction` that the wallet supports
93+
| { name: 'SignData'; types: ('text' | 'binary' | 'cell')[] } // `types` specifies the supported data types for the `SignData` method
94+
| { name: 'Subscription'; versions: { v2: boolean } }; // `versions` indicates which subscription versions are supported for `CreateSubscription` and `CancelSubscription` methods (currently only 'v2' is supported)
9595

9696
type ConnectItemReply = TonAddressItemReply | TonProofItemReply ...;
9797

0 commit comments

Comments
 (0)